RFR: 8316397: StackTrace/Suspended/GetStackTraceSuspendedStressTest.java failed with: SingleStep event is NOT expected [v4]
David Holmes
dholmes at openjdk.org
Mon Mar 3 05:13:52 UTC 2025
On Mon, 3 Mar 2025 04:13:24 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> We only allow suspension at `~ThreadBlockInVMPreprocess()` on very few cases where we know it's safe because there are no VM monitors held (the ones in ObjectMonitor, JvmtiRawMonitor and JavaThread::wait_for_object_deoptimization()). Otherwise the default is to not process suspend requests there.
>
> Can we customise the TBIVM in this case (for the JVMTIThreadState_lock) to allow suspend checks - I would not expect this to be happening when VM locks are held.
Sorry that wasn't well thought out - we would need to pass this through all the mutex code to allow it to be specialized.
Do we still have a "suspension disabler" that would prevent the suspend from being processed by the mutex blocking?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23490#discussion_r1976885509
More information about the hotspot-runtime-dev
mailing list