# HG changeset patch # User Christian Haeubl # Date 1373025906 -7200 # Node ID 4acf032748b91ca597a547261d90a1934e491eb4 # Parent b02b3c6a59b60c4f99512e8476826c91cf3b8cf6 Reenabled nmethod statistics in product mode. diff -r b02b3c6a59b6 -r 4acf032748b9 src/share/vm/code/nmethod.cpp --- a/src/share/vm/code/nmethod.cpp Fri Jul 05 14:00:17 2013 +0200 +++ b/src/share/vm/code/nmethod.cpp Fri Jul 05 14:05:06 2013 +0200 @@ -518,7 +518,7 @@ code_buffer, frame_size, basic_lock_owner_sp_offset, basic_lock_sp_offset, oop_maps); - NOT_PRODUCT(if (nm != NULL) nmethod_stats.note_native_nmethod(nm)); + if (nm != NULL) nmethod_stats.note_native_nmethod(nm); if (PrintAssembly && nm != NULL) { Disassembler::decode(nm); } @@ -554,7 +554,7 @@ nm = new (nmethod_size) nmethod(method(), nmethod_size, &offsets, code_buffer, frame_size); - NOT_PRODUCT(if (nm != NULL) nmethod_stats.note_nmethod(nm)); + if (nm != NULL) nmethod_stats.note_nmethod(nm); if (PrintAssembly && nm != NULL) { Disassembler::decode(nm); } @@ -639,7 +639,7 @@ InstanceKlass::cast(klass)->add_dependent_nmethod(nm); } } - NOT_PRODUCT(if (nm != NULL) nmethod_stats.note_nmethod(nm)); + if (nm != NULL) nmethod_stats.note_nmethod(nm); if (PrintAssembly && nm != NULL) { Disassembler::decode(nm); }