mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8004902: correctness fixes motivated by contended locking work (6607129)
Misc correctness fixes Reviewed-by: acorn, dholmes, dice, sspitsyn
This commit is contained in:
parent
8f1dc20874
commit
98c357abf8
7 changed files with 168 additions and 152 deletions
|
@ -911,7 +911,6 @@ jlong java_lang_Thread::stackSize(oop java_thread) {
|
|||
// Write the thread status value to threadStatus field in java.lang.Thread java class.
|
||||
void java_lang_Thread::set_thread_status(oop java_thread,
|
||||
java_lang_Thread::ThreadStatus status) {
|
||||
assert(JavaThread::current()->thread_state() == _thread_in_vm, "Java Thread is not running in vm");
|
||||
// The threadStatus is only present starting in 1.5
|
||||
if (_thread_status_offset > 0) {
|
||||
java_thread->int_field_put(_thread_status_offset, status);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue