src/hotspot/share/c1/c1_Runtime1.cpp
changeset 47624 b055cb5170f5
parent 47216 71c04702a3d5
child 47658 c2b7fb8e5144
--- a/src/hotspot/share/c1/c1_Runtime1.cpp	Fri Oct 13 14:02:01 2017 +0200
+++ b/src/hotspot/share/c1/c1_Runtime1.cpp	Fri Oct 13 15:08:56 2017 +0200
@@ -1221,11 +1221,6 @@
     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.