src/hotspot/share/runtime/vmOperations.cpp
changeset 58226 408c445d04e8
parent 57758 91a758925be7
child 58494 54c1ba464b78
child 58679 9c3209ff7550
child 59325 3636bab5e81e
equal deleted inserted replaced
58225:4eebb9aadbe3 58226:408c445d04e8
   113   } else {
   113   } else {
   114     CodeCache::clear_inline_caches();
   114     CodeCache::clear_inline_caches();
   115   }
   115   }
   116 }
   116 }
   117 
   117 
   118 void VM_Deoptimize::doit() {
       
   119   // We do not want any GCs to happen while we are in the middle of this VM operation
       
   120   ResourceMark rm;
       
   121   DeoptimizationMarker dm;
       
   122 
       
   123   // Deoptimize all activations depending on marked nmethods
       
   124   Deoptimization::deoptimize_dependents();
       
   125 
       
   126   // Make the dependent methods not entrant
       
   127   CodeCache::make_marked_nmethods_not_entrant();
       
   128 }
       
   129 
       
   130 void VM_MarkActiveNMethods::doit() {
   118 void VM_MarkActiveNMethods::doit() {
   131   NMethodSweeper::mark_active_nmethods();
   119   NMethodSweeper::mark_active_nmethods();
   132 }
   120 }
   133 
   121 
   134 VM_DeoptimizeFrame::VM_DeoptimizeFrame(JavaThread* thread, intptr_t* id, int reason) {
   122 VM_DeoptimizeFrame::VM_DeoptimizeFrame(JavaThread* thread, intptr_t* id, int reason) {