src/share/vm/code/nmethod.cpp

Print this page

        

*** 684,693 **** --- 684,694 ---- _entry_point = code_begin() + offsets->value(CodeOffsets::Entry); _verified_entry_point = code_begin() + offsets->value(CodeOffsets::Verified_Entry); _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()) { CodeCache::add_scavenge_root_nmethod(this); Universe::heap()->register_nmethod(this);
*** 768,777 **** --- 769,779 ---- _entry_point = code_begin() + offsets->value(CodeOffsets::Entry); _verified_entry_point = code_begin() + offsets->value(CodeOffsets::Verified_Entry); _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()); CodeCache::commit(this); }
*** 840,849 **** --- 842,852 ---- _entry_bci = entry_bci; _compile_id = compile_id; _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()); _stub_offset = content_offset() + code_buffer->total_offset_of(code_buffer->stubs());
*** 1259,1269 **** // The Method* is gone at this point assert(_method == NULL, "Tautology"); set_osr_link(NULL); //set_scavenge_root_link(NULL); // done by prune_scavenge_root_nmethods ! NMethodSweeper::notify(this); } void nmethod::invalidate_osr_method() { assert(_entry_bci != InvocationEntryBci, "wrong kind of nmethod"); // Remove from list of active nmethods --- 1262,1272 ---- // The Method* is gone at this point assert(_method == NULL, "Tautology"); set_osr_link(NULL); //set_scavenge_root_link(NULL); // done by prune_scavenge_root_nmethods ! NMethodSweeper::notify(); } void nmethod::invalidate_osr_method() { assert(_entry_bci != InvocationEntryBci, "wrong kind of nmethod"); // Remove from list of active nmethods
*** 1414,1424 **** if (TraceCreateZombies) { tty->print_cr("nmethod <" INTPTR_FORMAT "> code made %s", this, (state == not_entrant) ? "not entrant" : "zombie"); } // Make sweeper aware that there is a zombie method that needs to be removed ! NMethodSweeper::notify(this); return true; } void nmethod::flush() { --- 1417,1427 ---- if (TraceCreateZombies) { tty->print_cr("nmethod <" INTPTR_FORMAT "> code made %s", this, (state == not_entrant) ? "not entrant" : "zombie"); } // Make sweeper aware that there is a zombie method that needs to be removed ! NMethodSweeper::notify(); return true; } void nmethod::flush() {