Mercurial > hg > truffle
comparison src/share/vm/c1/c1_Instruction.hpp @ 6725:da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author | coleenp |
---|---|
date | Sat, 01 Sep 2012 13:25:18 -0400 |
parents | 1d7922586cf6 |
children | 7eca5de9e0b6 |
comparison
equal
deleted
inserted
replaced
6724:36d1d483d5d6 | 6725:da91efe96a93 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
911 | 911 |
912 // accessors | 912 // accessors |
913 Value value() const { return _value; } | 913 Value value() const { return _value; } |
914 bool needs_write_barrier() const { return check_flag(NeedsWriteBarrierFlag); } | 914 bool needs_write_barrier() const { return check_flag(NeedsWriteBarrierFlag); } |
915 bool needs_store_check() const { return check_flag(NeedsStoreCheckFlag); } | 915 bool needs_store_check() const { return check_flag(NeedsStoreCheckFlag); } |
916 // Helpers for methodDataOop profiling | 916 // Helpers for MethodData* profiling |
917 void set_should_profile(bool value) { set_flag(ProfileMDOFlag, value); } | 917 void set_should_profile(bool value) { set_flag(ProfileMDOFlag, value); } |
918 void set_profiled_method(ciMethod* method) { _profiled_method = method; } | 918 void set_profiled_method(ciMethod* method) { _profiled_method = method; } |
919 void set_profiled_bci(int bci) { _profiled_bci = bci; } | 919 void set_profiled_bci(int bci) { _profiled_bci = bci; } |
920 bool should_profile() const { return check_flag(ProfileMDOFlag); } | 920 bool should_profile() const { return check_flag(ProfileMDOFlag); } |
921 ciMethod* profiled_method() const { return _profiled_method; } | 921 ciMethod* profiled_method() const { return _profiled_method; } |
1347 | 1347 |
1348 // generic | 1348 // generic |
1349 virtual bool can_trap() const { return true; } | 1349 virtual bool can_trap() const { return true; } |
1350 virtual void input_values_do(ValueVisitor* f) { StateSplit::input_values_do(f); f->visit(&_obj); } | 1350 virtual void input_values_do(ValueVisitor* f) { StateSplit::input_values_do(f); f->visit(&_obj); } |
1351 | 1351 |
1352 // Helpers for methodDataOop profiling | 1352 // Helpers for MethodData* profiling |
1353 void set_should_profile(bool value) { set_flag(ProfileMDOFlag, value); } | 1353 void set_should_profile(bool value) { set_flag(ProfileMDOFlag, value); } |
1354 void set_profiled_method(ciMethod* method) { _profiled_method = method; } | 1354 void set_profiled_method(ciMethod* method) { _profiled_method = method; } |
1355 void set_profiled_bci(int bci) { _profiled_bci = bci; } | 1355 void set_profiled_bci(int bci) { _profiled_bci = bci; } |
1356 bool should_profile() const { return check_flag(ProfileMDOFlag); } | 1356 bool should_profile() const { return check_flag(ProfileMDOFlag); } |
1357 ciMethod* profiled_method() const { return _profiled_method; } | 1357 ciMethod* profiled_method() const { return _profiled_method; } |