diff src/share/vm/runtime/thread.cpp @ 52:75b0f3cb1943

Merge
author dcubed
date Thu, 13 Mar 2008 14:17:48 -0700
parents c7d713375c94 31000d79ec71
children cd0742ba123c
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.cpp	Thu Mar 13 05:40:44 2008 -0700
+++ b/src/share/vm/runtime/thread.cpp	Thu Mar 13 14:17:48 2008 -0700
@@ -1317,10 +1317,6 @@
   ThreadSafepointState::destroy(this);
   if (_thread_profiler != NULL) delete _thread_profiler;
   if (_thread_stat != NULL) delete _thread_stat;
-
-  if (jvmti_thread_state() != NULL) {
-    JvmtiExport::cleanup_thread(this);
-  }
 }
 
 
@@ -1571,6 +1567,10 @@
     tlab().make_parsable(true);  // retire TLAB
   }
 
+  if (jvmti_thread_state() != NULL) {
+    JvmtiExport::cleanup_thread(this);
+  }
+
   // Remove from list of active threads list, and notify VM thread if we are the last non-daemon thread
   Threads::remove(this);
 }