< prev index next >

src/share/vm/oops/method.hpp

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

*** 669,679 **** #ifdef TIERED bool has_aot_code() const { return aot_code() != NULL; } #endif // sizing ! static int header_size() { return sizeof(Method)/wordSize; } static int size(bool is_native); int size() const { return method_size(); } #if INCLUDE_SERVICES void collect_statistics(KlassSizeStats *sz) const; #endif --- 669,681 ---- #ifdef TIERED bool has_aot_code() const { return aot_code() != NULL; } #endif // sizing ! static int header_size() { ! return align_size_up(sizeof(Method), wordSize) / wordSize; ! } static int size(bool is_native); int size() const { return method_size(); } #if INCLUDE_SERVICES void collect_statistics(KlassSizeStats *sz) const; #endif
< prev index next >