mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
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:
parent
ae65c6240f
commit
6308eab4d5
4 changed files with 13 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue