--- old/src/hotspot/share/runtime/globals.hpp 2018-07-05 13:41:25.940422717 -0400 +++ new/src/hotspot/share/runtime/globals.hpp 2018-07-05 13:41:25.712422706 -0400 @@ -486,9 +486,6 @@ notproduct(bool, ZombieALot, false, \ "Create zombies (non-entrant) at exit from the runtime system") \ \ - product(bool, UnlinkSymbolsALot, false, \ - "Unlink unreferenced symbols from the symbol table at safepoints")\ - \ notproduct(bool, WalkStackALot, false, \ "Trace stack (no print) at every exit from the runtime system") \ \ --- old/src/hotspot/share/runtime/interfaceSupport.cpp 2018-07-05 13:41:26.292422734 -0400 +++ new/src/hotspot/share/runtime/interfaceSupport.cpp 2018-07-05 13:41:26.080422724 -0400 @@ -66,9 +66,6 @@ if (ZombieALot) { InterfaceSupport::zombieAll(); } - if (UnlinkSymbolsALot) { - InterfaceSupport::unlinkSymbols(); - } // do verification AFTER potential deoptimization if (VerifyStack) { InterfaceSupport::verify_stack(); @@ -208,11 +205,6 @@ zombieAllCounter++; } -void InterfaceSupport::unlinkSymbols() { - VM_UnlinkSymbols op; - VMThread::execute(&op); -} - void InterfaceSupport::deoptimizeAll() { // This method is called by all threads when a thread make // transition to VM state (for example, runtime calls). --- old/src/hotspot/share/runtime/interfaceSupport.inline.hpp 2018-07-05 13:41:26.620422750 -0400 +++ new/src/hotspot/share/runtime/interfaceSupport.inline.hpp 2018-07-05 13:41:26.392422739 -0400 @@ -60,7 +60,6 @@ static void walk_stack(); static void zombieAll(); - static void unlinkSymbols(); static void deoptimizeAll(); static void stress_derived_pointers(); static void verify_stack(); --- old/src/hotspot/share/runtime/vm_operations.cpp 2018-07-05 13:41:26.944422766 -0400 +++ new/src/hotspot/share/runtime/vm_operations.cpp 2018-07-05 13:41:26.720422755 -0400 @@ -192,12 +192,6 @@ #endif // !PRODUCT -void VM_UnlinkSymbols::doit() { - JavaThread *thread = (JavaThread *)calling_thread(); - assert(thread->is_Java_thread(), "must be a Java thread"); - SymbolTable::unlink(); -} - void VM_Verify::doit() { Universe::heap()->prepare_for_verify(); Universe::verify(); --- old/src/hotspot/share/runtime/vm_operations.hpp 2018-07-05 13:41:27.268422782 -0400 +++ new/src/hotspot/share/runtime/vm_operations.hpp 2018-07-05 13:41:27.044422771 -0400 @@ -52,7 +52,6 @@ template(DeoptimizeFrame) \ template(DeoptimizeAll) \ template(ZombieAll) \ - template(UnlinkSymbols) \ template(Verify) \ template(PrintJNI) \ template(HeapDumper) \ @@ -353,14 +352,6 @@ }; #endif // PRODUCT -class VM_UnlinkSymbols: public VM_Operation { - public: - VM_UnlinkSymbols() {} - VMOp_Type type() const { return VMOp_UnlinkSymbols; } - void doit(); - bool allow_nested_vm_operations() const { return true; } -}; - class VM_Verify: public VM_Operation { public: VMOp_Type type() const { return VMOp_Verify; }