src/hotspot/share/prims/jvmtiEventController.cpp
changeset 55005 9b70ebd131b4
parent 54623 1126f0607c70
child 55479 80b27dc96ca3
child 58678 9cf78a70fa4f
--- a/src/hotspot/share/prims/jvmtiEventController.cpp	Thu May 23 09:46:49 2019 +0200
+++ b/src/hotspot/share/prims/jvmtiEventController.cpp	Thu May 23 10:13:29 2019 +0200
@@ -32,6 +32,7 @@
 #include "prims/jvmtiExport.hpp"
 #include "prims/jvmtiImpl.hpp"
 #include "prims/jvmtiThreadState.inline.hpp"
+#include "runtime/deoptimization.hpp"
 #include "runtime/frame.hpp"
 #include "runtime/thread.inline.hpp"
 #include "runtime/threadSMR.hpp"
@@ -239,8 +240,7 @@
       }
     }
     if (num_marked > 0) {
-      VM_Deoptimize op;
-      VMThread::execute(&op);
+      Deoptimization::deoptimize_all_marked();
     }
   }
 }