[jdk19] RFR: 8289091: move oop safety check from SharedRuntime::get_java_tid() to JavaThread::threadObj() [v2]
Daniel D. Daugherty
dcubed at openjdk.org
Tue Jun 28 16:57:45 UTC 2022
On Mon, 27 Jun 2022 21:00:47 GMT, Daniel D. Daugherty <dcubed at openjdk.org> wrote:
>> A trivial move of the oop safety check from SharedRuntime::get_java_tid() to
>> JavaThread::threadObj(). Also made adjustments to the threadObj() calls in
>> JavaThread::print_on_error() and JavaThread::get_thread_name_string() so
>> that we don't get secondary crashes when a JavaThread crashes after it has
>> detached the GC barrier.
>>
>> Tested with Mach5 Tier[1-7]. A Mach5 Tier8 will be started this weekend.
>
> Daniel D. Daugherty has updated the pull request incrementally with one additional commit since the last revision:
>
> dholmes CR - check if current thread's oop access is safe.
Testing the V02 patch with Mach5 Tier1 now.
Also tested by temporarily reintroducing the bug fixed by:
[JDK-8288139](https://bugs.openjdk.org/browse/JDK-8288139) JavaThread touches oop after GC barrier is detached
and verifying that the bad code is still detected and that the
hs_err_pid file looks good.
-------------
PR: https://git.openjdk.org/jdk19/pull/69
More information about the hotspot-runtime-dev
mailing list