mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8287637: Loom: Mismatched VirtualThread::state accessor
Reviewed-by: alanb
This commit is contained in:
parent
59e9700c4e
commit
ce5ae51773
2 changed files with 3 additions and 3 deletions
|
@ -2233,8 +2233,8 @@ oop java_lang_VirtualThread::continuation(oop vthread) {
|
||||||
return cont;
|
return cont;
|
||||||
}
|
}
|
||||||
|
|
||||||
u2 java_lang_VirtualThread::state(oop vthread) {
|
int java_lang_VirtualThread::state(oop vthread) {
|
||||||
return vthread->short_field_acquire(_state_offset);
|
return vthread->int_field_acquire(_state_offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
JavaThreadStatus java_lang_VirtualThread::map_state_to_thread_status(int state) {
|
JavaThreadStatus java_lang_VirtualThread::map_state_to_thread_status(int state) {
|
||||||
|
|
|
@ -628,7 +628,7 @@ class java_lang_VirtualThread : AllStatic {
|
||||||
static oop vthread_scope();
|
static oop vthread_scope();
|
||||||
static oop carrier_thread(oop vthread);
|
static oop carrier_thread(oop vthread);
|
||||||
static oop continuation(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 JavaThreadStatus map_state_to_thread_status(int state);
|
||||||
static bool notify_jvmti_events();
|
static bool notify_jvmti_events();
|
||||||
static void set_notify_jvmti_events(bool enable);
|
static void set_notify_jvmti_events(bool enable);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue