src/hotspot/share/code/nmethod.cpp
changeset 54120 677cede5608e
parent 53921 a590b6107ab3
child 54122 4b1426ed1c44
equal deleted inserted replaced
54119:6bf8877eb1b9 54120:677cede5608e
   609 
   609 
   610     code_buffer->copy_code_and_locs_to(this);
   610     code_buffer->copy_code_and_locs_to(this);
   611     code_buffer->copy_values_to(this);
   611     code_buffer->copy_values_to(this);
   612 
   612 
   613     clear_unloading_state();
   613     clear_unloading_state();
   614     if (ScavengeRootsInCode) {
   614 
   615       Universe::heap()->register_nmethod(this);
   615     Universe::heap()->register_nmethod(this);
   616     }
       
   617     debug_only(Universe::heap()->verify_nmethod(this));
   616     debug_only(Universe::heap()->verify_nmethod(this));
       
   617 
   618     CodeCache::commit(this);
   618     CodeCache::commit(this);
   619   }
   619   }
   620 
   620 
   621   if (PrintNativeNMethods || PrintDebugInfo || PrintRelocations || PrintDependencies) {
   621   if (PrintNativeNMethods || PrintDebugInfo || PrintRelocations || PrintDependencies) {
   622     ttyLocker ttyl;  // keep the following output all in one block
   622     ttyLocker ttyl;  // keep the following output all in one block
   769     // Copy contents of ScopeDescRecorder to nmethod
   769     // Copy contents of ScopeDescRecorder to nmethod
   770     code_buffer->copy_values_to(this);
   770     code_buffer->copy_values_to(this);
   771     debug_info->copy_to(this);
   771     debug_info->copy_to(this);
   772     dependencies->copy_to(this);
   772     dependencies->copy_to(this);
   773     clear_unloading_state();
   773     clear_unloading_state();
   774     if (ScavengeRootsInCode) {
   774 
   775       Universe::heap()->register_nmethod(this);
   775     Universe::heap()->register_nmethod(this);
   776     }
       
   777     debug_only(Universe::heap()->verify_nmethod(this));
   776     debug_only(Universe::heap()->verify_nmethod(this));
   778 
   777 
   779     CodeCache::commit(this);
   778     CodeCache::commit(this);
   780 
   779 
   781     // Copy contents of ExceptionHandlerTable to nmethod
   780     // Copy contents of ExceptionHandlerTable to nmethod