changeset 6176 | 4d9030fe341f |
parent 5924 | dc9d04930c82 |
child 6453 | 970dc585ab63 |
--- a/hotspot/src/share/vm/runtime/java.cpp Wed Jul 28 17:57:43 2010 -0400 +++ b/hotspot/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()) {