6814943: getcpool001 catches more than one JvmtiThreadState problem

Mark field volatile, use membars, and change access order to close race

Reviewed-by: dcubed, dholmes
This commit is contained in:
Keith McGuigan 2011-01-11 10:06:00 -05:00
parent ae65c6240f
commit 6308eab4d5
4 changed files with 13 additions and 11 deletions

View file

@ -809,7 +809,7 @@ class JavaThread: public Thread {
//
// _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