< prev index next >

src/hotspot/share/classfile/javaClasses.cpp

Print this page

        

*** 1611,1621 **** int java_lang_Thread::_stillborn_offset = 0; int java_lang_Thread::_stackSize_offset = 0; int java_lang_Thread::_tid_offset = 0; int java_lang_Thread::_thread_status_offset = 0; int java_lang_Thread::_park_blocker_offset = 0; - int java_lang_Thread::_park_event_offset = 0 ; #define THREAD_FIELDS_DO(macro) \ macro(_name_offset, k, vmSymbols::name_name(), string_signature, false); \ macro(_group_offset, k, vmSymbols::group_name(), threadgroup_signature, false); \ macro(_contextClassLoader_offset, k, vmSymbols::contextClassLoader_name(), classloader_signature, false); \ --- 1611,1620 ----
*** 1625,1636 **** macro(_eetop_offset, k, "eetop", long_signature, false); \ macro(_stillborn_offset, k, "stillborn", bool_signature, false); \ macro(_stackSize_offset, k, "stackSize", long_signature, false); \ macro(_tid_offset, k, "tid", long_signature, false); \ macro(_thread_status_offset, k, "threadStatus", int_signature, false); \ ! macro(_park_blocker_offset, k, "parkBlocker", object_signature, false); \ ! macro(_park_event_offset, k, "nativeParkEventPointer", long_signature, false) void java_lang_Thread::compute_offsets() { assert(_group_offset == 0, "offsets should be initialized only once"); InstanceKlass* k = SystemDictionary::Thread_klass(); --- 1624,1634 ---- macro(_eetop_offset, k, "eetop", long_signature, false); \ macro(_stillborn_offset, k, "stillborn", bool_signature, false); \ macro(_stackSize_offset, k, "stackSize", long_signature, false); \ macro(_tid_offset, k, "tid", long_signature, false); \ macro(_thread_status_offset, k, "threadStatus", int_signature, false); \ ! macro(_park_blocker_offset, k, "parkBlocker", object_signature, false); void java_lang_Thread::compute_offsets() { assert(_group_offset == 0, "offsets should be initialized only once"); InstanceKlass* k = SystemDictionary::Thread_klass();
*** 1743,1761 **** "Must support parkBlocker field"); return java_thread->obj_field(_park_blocker_offset); } - jlong java_lang_Thread::park_event(oop java_thread) { - return java_thread->long_field(_park_event_offset); - } - - bool java_lang_Thread::set_park_event(oop java_thread, jlong ptr) { - java_thread->long_field_put(_park_event_offset, ptr); - return true; - } - const char* java_lang_Thread::thread_status_name(oop java_thread) { ThreadStatus status = (java_lang_Thread::ThreadStatus)java_thread->int_field(_thread_status_offset); switch (status) { case NEW : return "NEW"; case RUNNABLE : return "RUNNABLE"; --- 1741,1750 ----
< prev index next >