src/hotspot/share/c1/c1_Runtime1.cpp
changeset 54120 677cede5608e
parent 53582 881c5fbeb849
child 54623 1126f0607c70
equal deleted inserted replaced
54119:6bf8877eb1b9 54120:677cede5608e
  1262     }
  1262     }
  1263   }
  1263   }
  1264 
  1264 
  1265   // If we are patching in a non-perm oop, make sure the nmethod
  1265   // If we are patching in a non-perm oop, make sure the nmethod
  1266   // is on the right list.
  1266   // is on the right list.
  1267   if (ScavengeRootsInCode) {
  1267   {
  1268     MutexLockerEx ml_code (CodeCache_lock, Mutex::_no_safepoint_check_flag);
  1268     MutexLockerEx ml_code (CodeCache_lock, Mutex::_no_safepoint_check_flag);
  1269     nmethod* nm = CodeCache::find_nmethod(caller_frame.pc());
  1269     nmethod* nm = CodeCache::find_nmethod(caller_frame.pc());
  1270     guarantee(nm != NULL, "only nmethods can contain non-perm oops");
  1270     guarantee(nm != NULL, "only nmethods can contain non-perm oops");
  1271 
  1271 
  1272     // Since we've patched some oops in the nmethod,
  1272     // Since we've patched some oops in the nmethod,