[jdk11u-dev] RFR: 8322511: JfrCheckpointThreadClosure::do_thread crashes when fetching thread_id [v4]

Jiawei Tang duke at openjdk.org
Tue Mar 5 03:41:49 UTC 2024


On Tue, 5 Mar 2024 03:14:01 GMT, Jiawei Tang <duke at openjdk.org> wrote:

>> Threads which are in the state of `is_attaching_via_jni` may have the NULL object as their `_threadObj` . 
>> So the JVM will crash when calling `JfrCheckpointThreadClosure::do_thread()`.
>
> Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update full name

@phohensee @jerboaa Could you pls approve this [JDK-8322511](https://bugs.openjdk.org/browse/JDK-8322511) and review my codes? I showed the details about how JVM visit the null object `_threadObj` before and the change is harmless (only add the null condition check).

-------------

PR Comment: https://git.openjdk.org/jdk11u-dev/pull/2413#issuecomment-1977911409


More information about the jdk-updates-dev mailing list