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