hotspot/src/share/vm/runtime/java.cpp
changeset 24844 d1345c68cea9
parent 24658 e41df2fc6e87
child 24848 34d57b35331b
--- a/hotspot/src/share/vm/runtime/java.cpp	Mon Jun 02 06:29:34 2014 -0700
+++ b/hotspot/src/share/vm/runtime/java.cpp	Tue Jun 03 10:37:46 2014 +0200
@@ -501,9 +501,6 @@
     os::infinite_sleep();
   }
 
-  // Stop any ongoing concurrent GC work
-  Universe::heap()->stop();
-
   // Terminate watcher thread - must before disenrolling any periodic task
   if (PeriodicTask::num_tasks() > 0)
     WatcherThread::stop();
@@ -518,10 +515,8 @@
   StatSampler::disengage();
   StatSampler::destroy();
 
-  // We do not need to explicitly stop concurrent GC threads because the
-  // JVM will be taken down at a safepoint when such threads are inactive --
-  // except for some concurrent G1 threads, see (comment in)
-  // Threads::destroy_vm().
+  // Stop concurrent GC threads
+  Universe::heap()->stop();
 
   // Print GC/heap related information.
   if (PrintGCDetails) {