diff -r 96e35aced4ef -r 6b194cfc1557 hotspot/src/share/vm/runtime/vmThread.hpp --- a/hotspot/src/share/vm/runtime/vmThread.hpp Wed May 11 00:40:59 2016 +0000 +++ b/hotspot/src/share/vm/runtime/vmThread.hpp Wed May 11 01:02:28 2016 -0400 @@ -104,6 +104,12 @@ // Constructor VMThread(); + // No destruction allowed + ~VMThread() { + guarantee(false, "VMThread deletion must fix the race with VM termination"); + } + + // Tester bool is_VM_thread() const { return true; } bool is_GC_thread() const { return true; }