comparison src/share/vm/classfile/javaClasses.cpp @ 7629:22ba8c8ce6a6

8004902: correctness fixes motivated by contended locking work (6607129) Summary: misc correctness fixes Reviewed-by: acorn, dholmes, dice, sspitsyn Contributed-by: dave.dice@oracle.com
author dcubed
date Tue, 22 Jan 2013 05:56:42 -0800
parents c73c3f2c5b3b
children 3ac7d10a6572 6337ca4dcad8 b295e132102d
comparison
equal deleted inserted replaced
7628:f3184f32ce0b 7629:22ba8c8ce6a6
909 } 909 }
910 910
911 // Write the thread status value to threadStatus field in java.lang.Thread java class. 911 // Write the thread status value to threadStatus field in java.lang.Thread java class.
912 void java_lang_Thread::set_thread_status(oop java_thread, 912 void java_lang_Thread::set_thread_status(oop java_thread,
913 java_lang_Thread::ThreadStatus status) { 913 java_lang_Thread::ThreadStatus status) {
914 assert(JavaThread::current()->thread_state() == _thread_in_vm, "Java Thread is not running in vm");
915 // The threadStatus is only present starting in 1.5 914 // The threadStatus is only present starting in 1.5
916 if (_thread_status_offset > 0) { 915 if (_thread_status_offset > 0) {
917 java_thread->int_field_put(_thread_status_offset, status); 916 java_thread->int_field_put(_thread_status_offset, status);
918 } 917 }
919 } 918 }