src/hotspot/share/code/nmethod.cpp
changeset 53085 4384060a7ca5
parent 52857 7e268f863ff0
child 53088 a682cf219811
equal deleted inserted replaced
53084:293cec2f7670 53085:4384060a7ca5
  1279       MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
  1279       MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
  1280       if (nmethod_needs_unregister) {
  1280       if (nmethod_needs_unregister) {
  1281         Universe::heap()->unregister_nmethod(this);
  1281         Universe::heap()->unregister_nmethod(this);
  1282       }
  1282       }
  1283       flush_dependencies(/*delete_immediately*/true);
  1283       flush_dependencies(/*delete_immediately*/true);
       
  1284     }
       
  1285 
       
  1286     // Clear ICStubs to prevent back patching stubs of zombie or flushed
       
  1287     // nmethods during the next safepoint (see ICStub::finalize).
       
  1288     {
       
  1289       CompiledICLocker ml(this);
       
  1290       clear_ic_stubs();
  1284     }
  1291     }
  1285 
  1292 
  1286     // zombie only - if a JVMTI agent has enabled the CompiledMethodUnload
  1293     // zombie only - if a JVMTI agent has enabled the CompiledMethodUnload
  1287     // event and it hasn't already been reported for this nmethod then
  1294     // event and it hasn't already been reported for this nmethod then
  1288     // report it now. The event may have been reported earlier if the GC
  1295     // report it now. The event may have been reported earlier if the GC