RFR: 8373839: Disable JVM TI suspension during JNI critical regions [v2]

David Holmes dholmes at openjdk.org
Fri Dec 19 12:49:01 UTC 2025


On Fri, 19 Dec 2025 11:13:01 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:

>> David Holmes has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Delay suspender whilst target is in-critical
>>  - Revert "8373839: Disable JVM TI suspension during JNI critical regions"
>>    
>>    This reverts commit 7723275e4495cc1f514c531afe752210209617cc.
>
> src/hotspot/share/runtime/suspendResumeManager.cpp line 64:
> 
>> 62:   }
>> 63:   void do_thread(Thread* thr) {
>> 64:     assert(thr != Thread::current(), "must be");
> 
> I think the target can execute this operation.

We already checked for current thread in `SuspendResumeManager::suspend` and took a different path before calling this.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28884#discussion_r2634990833


More information about the serviceability-dev mailing list