hotspot/src/share/vm/runtime/vmThread.hpp
changeset 38290 6b194cfc1557
parent 38074 8475fdc6dcc3
child 46496 76ed99d51a67
--- 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; }