< prev index next >

src/share/vm/oops/methodCounters.hpp

Print this page
rev 12709 : 8170812: Metaspace corruption caused by incorrect memory size for MethodCounters
Reviewed-by: kbarrett, coleenp

*** 114,124 **** void deallocate_contents(ClassLoaderData* loader_data) {} DEBUG_ONLY(bool on_stack() { return false; }) // for template AOT_ONLY(Method* method() const { return _method; }) ! static int size() { return sizeof(MethodCounters) / wordSize; } bool is_klass() const { return false; } void clear_counters(); --- 114,126 ---- void deallocate_contents(ClassLoaderData* loader_data) {} DEBUG_ONLY(bool on_stack() { return false; }) // for template AOT_ONLY(Method* method() const { return _method; }) ! static int size() { ! return align_size_up(sizeof(MethodCounters), wordSize) / wordSize; ! } bool is_klass() const { return false; } void clear_counters();
< prev index next >