diff src/share/vm/runtime/thread.hpp @ 2126:db2b0f8c1cef

6814943: getcpool001 catches more than one JvmtiThreadState problem Summary: Mark field volatile, use membars, and change access order to close race Reviewed-by: dcubed, dholmes
author kamg
date Tue, 11 Jan 2011 10:06:00 -0500
parents b1a2afa37ec4
children d25d4ca69222 b92c45f2bc75
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.hpp	Mon Jan 10 17:14:53 2011 -0500
+++ b/src/share/vm/runtime/thread.hpp	Tue Jan 11 10:06:00 2011 -0500
@@ -809,7 +809,7 @@
   //
   // _vm_exited is a special value to cover the case of a JavaThread
   // executing native code after the VM itself is terminated.
-  TerminatedTypes       _terminated;
+  volatile TerminatedTypes _terminated;
   // suspend/resume support
   volatile bool         _suspend_equivalent;     // Suspend equivalent condition
   jint                  _in_deopt_handler;       // count of deoptimization