< prev index next >

src/share/vm/c1/c1_Runtime1.cpp

Print this page
rev 13280 : imported patch CollectedHeap_register_nmethod

*** 1221,1235 **** // is on the right list. if (ScavengeRootsInCode) { MutexLockerEx ml_code (CodeCache_lock, Mutex::_no_safepoint_check_flag); nmethod* nm = CodeCache::find_nmethod(caller_frame.pc()); guarantee(nm != NULL, "only nmethods can contain non-perm oops"); - if (!nm->on_scavenge_root_list() && - ((mirror.not_null() && mirror()->is_scavengable()) || - (appendix.not_null() && appendix->is_scavengable()))) { - CodeCache::add_scavenge_root_nmethod(nm); - } // Since we've patched some oops in the nmethod, // (re)register it with the heap. Universe::heap()->register_nmethod(nm); } --- 1221,1230 ----
< prev index next >