< prev index next >

src/hotspot/share/jvmci/jvmciEnv.cpp

Print this page
rev 54936 : [mq]: 8221734-v3

*** 29,38 **** --- 29,39 ---- #include "memory/oopFactory.hpp" #include "memory/resourceArea.hpp" #include "memory/universe.hpp" #include "oops/objArrayKlass.hpp" #include "oops/typeArrayOop.inline.hpp" + #include "runtime/deoptimization.hpp" #include "runtime/jniHandles.inline.hpp" #include "runtime/javaCalls.hpp" #include "jvmci/jniAccessMark.inline.hpp" #include "jvmci/jvmciRuntime.hpp"
*** 1494,1505 **** nmethodLocker nml(nm); if (nm->is_alive()) { // Invalidating the HotSpotNmethod means we want the nmethod // to be deoptimized. nm->mark_for_deoptimization(); ! VM_Deoptimize op; ! VMThread::execute(&op); } // A HotSpotNmethod instance can only reference a single nmethod // during its lifetime so simply clear it here. set_InstalledCode_address(mirror, 0); --- 1495,1505 ---- nmethodLocker nml(nm); if (nm->is_alive()) { // Invalidating the HotSpotNmethod means we want the nmethod // to be deoptimized. nm->mark_for_deoptimization(); ! Deoptimization::deoptimize_all_marked(); } // A HotSpotNmethod instance can only reference a single nmethod // during its lifetime so simply clear it here. set_InstalledCode_address(mirror, 0);
< prev index next >