comparison src/share/vm/oops/instanceKlass.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 825e6cb66923
comparison
equal deleted inserted replaced
11065:cedf20e2a655 11096:71180a6e5080
792 void do_local_static_fields(void f(fieldDescriptor*, TRAPS), TRAPS); 792 void do_local_static_fields(void f(fieldDescriptor*, TRAPS), TRAPS);
793 793
794 void methods_do(void f(Method* method)); 794 void methods_do(void f(Method* method));
795 void array_klasses_do(void f(Klass* k)); 795 void array_klasses_do(void f(Klass* k));
796 void array_klasses_do(void f(Klass* k, TRAPS), TRAPS); 796 void array_klasses_do(void f(Klass* k, TRAPS), TRAPS);
797 void with_array_klasses_do(void f(Klass* k));
798 bool super_types_do(SuperTypeClosure* blk); 797 bool super_types_do(SuperTypeClosure* blk);
799 798
800 // Casting from Klass* 799 // Casting from Klass*
801 static InstanceKlass* cast(Klass* k) { 800 static InstanceKlass* cast(Klass* k) {
802 assert(k->is_klass(), "must be"); 801 assert(k->is_klass(), "must be");
871 } 870 }
872 } else { 871 } else {
873 return NULL; 872 return NULL;
874 } 873 }
875 } 874 }
876
877 // Allocation profiling support
878 juint alloc_size() const { return _alloc_count * size_helper(); }
879 void set_alloc_size(juint n) {}
880 875
881 // Use this to return the size of an instance in heap words: 876 // Use this to return the size of an instance in heap words:
882 int size_helper() const { 877 int size_helper() const {
883 return layout_helper_to_size_helper(layout_helper()); 878 return layout_helper_to_size_helper(layout_helper());
884 } 879 }