--- old/src/hotspot/share/prims/jvmtiEventController.cpp 2019-08-28 08:34:59.153279617 +0200 +++ new/src/hotspot/share/prims/jvmtiEventController.cpp 2019-08-28 08:34:58.830268606 +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(); } } }