--- old/src/hotspot/share/runtime/interfaceSupport.cpp 2020-07-12 22:24:40.307383325 +0200 +++ new/src/hotspot/share/runtime/interfaceSupport.cpp 2020-07-12 22:24:39.887382524 +0200 @@ -30,7 +30,6 @@ #include "memory/universe.hpp" #include "runtime/atomic.hpp" #include "runtime/frame.inline.hpp" -#include "runtime/deoptimization.hpp" #include "runtime/handles.inline.hpp" #include "runtime/init.hpp" #include "runtime/interfaceSupport.inline.hpp" @@ -61,9 +60,6 @@ if (ZombieALot) { InterfaceSupport::zombieAll(); } - if (DeoptimizeObjectsALot == 1) { - InterfaceSupport::deoptimizeAllObjects(); - } // do verification AFTER potential deoptimization if (VerifyStack) { InterfaceSupport::verify_stack(); @@ -195,7 +191,6 @@ // invocation counter for InterfaceSupport::deoptimizeAll/zombieAll functions int deoptimizeAllCounter = 0; int zombieAllCounter = 0; -int deoptimizeAllObjectsCounter = 0; void InterfaceSupport::zombieAll() { // This method is called by all threads when a thread make @@ -230,23 +225,6 @@ deoptimizeAllCounter++; } -void InterfaceSupport::deoptimizeAllObjects() { - // This method is called by all threads when a thread makes - // transition to VM state (for example, runtime calls). - // Divide number of calls by number of threads to avoid - // dependence of DeoptimizeObjectsALot events frequency on number of threads. - int value = deoptimizeAllObjectsCounter / Threads::number_of_threads(); - if (is_init_completed() && value > DeoptimizeObjectsALotInterval) { - // Revert optimizations based on escape analysis for all compiled frames of all Java threads as - // if objects local to a frame or a thread were escaping. - deoptimizeAllObjectsCounter = 0; - JavaThread* ct = JavaThread::current(); - EscapeBarrier eb(ct, true); - eb.deoptimize_objects_all_threads(); - } - deoptimizeAllObjectsCounter++; -} - void InterfaceSupport::verify_stack() { JavaThread* thread = JavaThread::current();