Mercurial > hg > truffle
comparison src/share/vm/oops/klass.hpp @ 11096:71180a6e5080
7133260: AllocationProfiler uses space in metadata and doesn't seem to do anything useful.
Summary: Remove -Xaprof and Klass::_alloc_count & ArrayKlass::_alloc_size.
Reviewed-by: stefank, coleenp
author | jiangli |
---|---|
date | Wed, 03 Jul 2013 17:26:59 -0400 |
parents | e0c9a1d29eb4 |
children | 6b0fd0964b87 740e263c80c6 d0afbee540e0 |
comparison
equal
deleted
inserted
replaced
11065:cedf20e2a655 | 11096:71180a6e5080 |
---|---|
77 // [modifier_flags] | 77 // [modifier_flags] |
78 // [access_flags ] | 78 // [access_flags ] |
79 // [last_biased_lock_bulk_revocation_time] (64 bits) | 79 // [last_biased_lock_bulk_revocation_time] (64 bits) |
80 // [prototype_header] | 80 // [prototype_header] |
81 // [biased_lock_revocation_count] | 81 // [biased_lock_revocation_count] |
82 // [alloc_count ] | |
83 // [_modified_oops] | 82 // [_modified_oops] |
84 // [_accumulated_modified_oops] | 83 // [_accumulated_modified_oops] |
85 // [trace_id] | 84 // [trace_id] |
86 | 85 |
87 | 86 |
169 // (the 64-bit chunk goes first, to avoid some fragmentation) | 168 // (the 64-bit chunk goes first, to avoid some fragmentation) |
170 jlong _last_biased_lock_bulk_revocation_time; | 169 jlong _last_biased_lock_bulk_revocation_time; |
171 markOop _prototype_header; // Used when biased locking is both enabled and disabled for this type | 170 markOop _prototype_header; // Used when biased locking is both enabled and disabled for this type |
172 jint _biased_lock_revocation_count; | 171 jint _biased_lock_revocation_count; |
173 | 172 |
174 juint _alloc_count; // allocation profiling support | |
175 | |
176 TRACE_DEFINE_KLASS_TRACE_ID; | 173 TRACE_DEFINE_KLASS_TRACE_ID; |
177 | 174 |
178 // Remembered sets support for the oops in the klasses. | 175 // Remembered sets support for the oops in the klasses. |
179 jbyte _modified_oops; // Card Table Equivalent (YC/CMS support) | 176 jbyte _modified_oops; // Card Table Equivalent (YC/CMS support) |
180 jbyte _accumulated_modified_oops; // Mod Union Equivalent (CMS support) | 177 jbyte _accumulated_modified_oops; // Mod Union Equivalent (CMS support) |
288 Klass* next_sibling_oop() const { return _next_sibling; } | 285 Klass* next_sibling_oop() const { return _next_sibling; } |
289 void set_subklass(Klass* s); | 286 void set_subklass(Klass* s); |
290 void set_next_sibling(Klass* s); | 287 void set_next_sibling(Klass* s); |
291 | 288 |
292 public: | 289 public: |
293 // Allocation profiling support | |
294 juint alloc_count() const { return _alloc_count; } | |
295 void set_alloc_count(juint n) { _alloc_count = n; } | |
296 virtual juint alloc_size() const = 0; | |
297 virtual void set_alloc_size(juint n) = 0; | |
298 | 290 |
299 // Compiler support | 291 // Compiler support |
300 static ByteSize super_offset() { return in_ByteSize(offset_of(Klass, _super)); } | 292 static ByteSize super_offset() { return in_ByteSize(offset_of(Klass, _super)); } |
301 static ByteSize super_check_offset_offset() { return in_ByteSize(offset_of(Klass, _super_check_offset)); } | 293 static ByteSize super_check_offset_offset() { return in_ByteSize(offset_of(Klass, _super_check_offset)); } |
302 static ByteSize primary_supers_offset() { return in_ByteSize(offset_of(Klass, _primary_supers)); } | 294 static ByteSize primary_supers_offset() { return in_ByteSize(offset_of(Klass, _primary_supers)); } |
675 SPECIALIZED_OOP_OOP_ITERATE_CLOSURES_1(Klass_OOP_OOP_ITERATE_BACKWARDS_DECL) | 667 SPECIALIZED_OOP_OOP_ITERATE_CLOSURES_1(Klass_OOP_OOP_ITERATE_BACKWARDS_DECL) |
676 SPECIALIZED_OOP_OOP_ITERATE_CLOSURES_2(Klass_OOP_OOP_ITERATE_BACKWARDS_DECL) | 668 SPECIALIZED_OOP_OOP_ITERATE_CLOSURES_2(Klass_OOP_OOP_ITERATE_BACKWARDS_DECL) |
677 #endif // INCLUDE_ALL_GCS | 669 #endif // INCLUDE_ALL_GCS |
678 | 670 |
679 virtual void array_klasses_do(void f(Klass* k)) {} | 671 virtual void array_klasses_do(void f(Klass* k)) {} |
680 virtual void with_array_klasses_do(void f(Klass* k)); | |
681 | 672 |
682 // Return self, except for abstract classes with exactly 1 | 673 // Return self, except for abstract classes with exactly 1 |
683 // implementor. Then return the 1 concrete implementation. | 674 // implementor. Then return the 1 concrete implementation. |
684 Klass *up_cast_abstract(); | 675 Klass *up_cast_abstract(); |
685 | 676 |