equal
deleted
inserted
replaced
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, |