8287637: Loom: Mismatched VirtualThread::state accessor

Reviewed-by: alanb
This commit is contained in:
Aleksey Shipilev 2022-06-03 16:43:45 +00:00
parent 59e9700c4e
commit ce5ae51773
2 changed files with 3 additions and 3 deletions

View File

@ -2233,8 +2233,8 @@ oop java_lang_VirtualThread::continuation(oop vthread) {
return cont;
}
u2 java_lang_VirtualThread::state(oop vthread) {
return vthread->short_field_acquire(_state_offset);
int java_lang_VirtualThread::state(oop vthread) {
return vthread->int_field_acquire(_state_offset);
}
JavaThreadStatus java_lang_VirtualThread::map_state_to_thread_status(int state) {

View File

@ -628,7 +628,7 @@ class java_lang_VirtualThread : AllStatic {
static oop vthread_scope();
static oop carrier_thread(oop vthread);
static oop continuation(oop vthread);
static u2 state(oop vthread);
static int state(oop vthread);
static JavaThreadStatus map_state_to_thread_status(int state);
static bool notify_jvmti_events();
static void set_notify_jvmti_events(bool enable);