-
Bug
-
Resolution: Fixed
-
P4
-
17, 20, 21
-
b22
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8311095 | 17.0.9 | Aleksey Shipilev | P4 | Resolved | Fixed | b01 |
In jfrJavaSupport.cpp:
static JavaThread* get_native(jobject thread) {
ThreadsListHandle tlh;
JavaThread* native_thread = NULL;
(void)tlh.cv_internal_thread_to_JavaThread(thread, &native_thread, NULL);
return native_thread;
}
This code seems to return a native thread after the TLH that protects it returns so appears unsafe.
- backported by
-
JDK-8311095 native_thread not protected by TLH
- Resolved