< prev index next >

src/share/vm/services/threadService.hpp

Print this page

        

@@ -493,10 +493,11 @@
       if (_active) {
         _stat->monitor_wait_begin();
       }
     } else {
       _active = false;
+      _stat = NULL;
     }
   }
 
   ~JavaThreadParkedState() {
     if (_active) {

@@ -577,10 +578,11 @@
       if (_active) {
         _stat->thread_sleep_begin();
       }
     } else {
       _active = false;
+      _stat = NULL;
     }
   }
 
   ~JavaThreadSleepState() {
     if (_active) {
< prev index next >