--- old/src/share/vm/code/nmethod.cpp 2013-09-04 12:24:47.383238619 +0200 +++ new/src/share/vm/code/nmethod.cpp 2013-09-04 12:24:47.327238621 +0200 @@ -686,6 +686,7 @@ _osr_entry_point = NULL; _exception_cache = NULL; _pc_desc_cache.reset_to(NULL); + _hotness_counter = (ReservedCodeCacheSize / M) * 2; code_buffer->copy_values_to(this); if (ScavengeRootsInCode && detect_scavenge_root_oops()) { @@ -770,6 +771,7 @@ _osr_entry_point = NULL; _exception_cache = NULL; _pc_desc_cache.reset_to(NULL); + _hotness_counter = (ReservedCodeCacheSize / M) * 2; code_buffer->copy_values_to(this); debug_only(verify_scavenge_root_oops()); @@ -842,6 +844,7 @@ _comp_level = comp_level; _compiler = compiler; _orig_pc_offset = orig_pc_offset; + _hotness_counter = (ReservedCodeCacheSize / M) * 2; // Section offsets _consts_offset = content_offset() + code_buffer->total_offset_of(code_buffer->consts()); @@ -1261,7 +1264,7 @@ set_osr_link(NULL); //set_scavenge_root_link(NULL); // done by prune_scavenge_root_nmethods - NMethodSweeper::notify(this); + NMethodSweeper::notify(); } void nmethod::invalidate_osr_method() { @@ -1416,7 +1419,7 @@ } // Make sweeper aware that there is a zombie method that needs to be removed - NMethodSweeper::notify(this); + NMethodSweeper::notify(); return true; }