comparison 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
comparison
equal deleted inserted replaced
2125:7246a374a9f2 2126:db2b0f8c1cef
807 // 807 //
808 // _not_terminated => _thread_exiting => _thread_terminated 808 // _not_terminated => _thread_exiting => _thread_terminated
809 // 809 //
810 // _vm_exited is a special value to cover the case of a JavaThread 810 // _vm_exited is a special value to cover the case of a JavaThread
811 // executing native code after the VM itself is terminated. 811 // executing native code after the VM itself is terminated.
812 TerminatedTypes _terminated; 812 volatile TerminatedTypes _terminated;
813 // suspend/resume support 813 // suspend/resume support
814 volatile bool _suspend_equivalent; // Suspend equivalent condition 814 volatile bool _suspend_equivalent; // Suspend equivalent condition
815 jint _in_deopt_handler; // count of deoptimization 815 jint _in_deopt_handler; // count of deoptimization
816 // handlers thread is in 816 // handlers thread is in
817 volatile bool _doing_unsafe_access; // Thread may fault due to unsafe access 817 volatile bool _doing_unsafe_access; // Thread may fault due to unsafe access