src/hotspot/share/runtime/vmOperations.cpp
changeset 55499 1887e16a5657
parent 55005 9b70ebd131b4
child 57699 4aea554692aa
equal deleted inserted replaced
55487:79c32c7b0992 55499:1887e16a5657
   116   } else {
   116   } else {
   117     CodeCache::clear_inline_caches();
   117     CodeCache::clear_inline_caches();
   118   }
   118   }
   119 }
   119 }
   120 
   120 
       
   121 void VM_Deoptimize::doit() {
       
   122   // We do not want any GCs to happen while we are in the middle of this VM operation
       
   123   ResourceMark rm;
       
   124   DeoptimizationMarker dm;
       
   125 
       
   126   // Deoptimize all activations depending on marked nmethods
       
   127   Deoptimization::deoptimize_dependents();
       
   128 
       
   129   // Make the dependent methods not entrant
       
   130   CodeCache::make_marked_nmethods_not_entrant();
       
   131 }
       
   132 
   121 void VM_MarkActiveNMethods::doit() {
   133 void VM_MarkActiveNMethods::doit() {
   122   NMethodSweeper::mark_active_nmethods();
   134   NMethodSweeper::mark_active_nmethods();
   123 }
   135 }
   124 
   136 
   125 VM_DeoptimizeFrame::VM_DeoptimizeFrame(JavaThread* thread, intptr_t* id, int reason) {
   137 VM_DeoptimizeFrame::VM_DeoptimizeFrame(JavaThread* thread, intptr_t* id, int reason) {