diff src/share/vm/runtime/java.cpp @ 1681:126ea7725993

6953477: Increase portability and flexibility of building Hotspot Summary: A collection of portability improvements including shared code support for PPC, ARM platforms, software floating point, cross compilation support and improvements in error crash detail. Reviewed-by: phh, never, coleenp, dholmes
author bobv
date Tue, 03 Aug 2010 08:13:38 -0400
parents 2a47bd84841f
children d5d065957597
line wrap: on
line diff
--- a/src/share/vm/runtime/java.cpp	Wed Jul 28 17:57:43 2010 -0400
+++ b/src/share/vm/runtime/java.cpp	Tue Aug 03 08:13:38 2010 -0400
@@ -378,7 +378,8 @@
   }
 
   // Terminate watcher thread - must before disenrolling any periodic task
-  WatcherThread::stop();
+  if (PeriodicTask::num_tasks() > 0)
+    WatcherThread::stop();
 
   // Print statistics gathered (profiling ...)
   if (Arguments::has_profile()) {