RFR: 8316397: StackTrace/Suspended/GetStackTraceSuspendedStressTest.java failed with: SingleStep event is NOT expected [v4]
David Holmes
dholmes at openjdk.org
Mon Mar 3 04:15:57 UTC 2025
On Fri, 28 Feb 2025 14:20:45 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:
>> Uggghhh - I see. So why isn't this caught at ` ~ThreadBlockInVMPreprocess()`? Sorry I'm struggling to see the complete code.
>
> 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.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23490#discussion_r1976850275
More information about the hotspot-runtime-dev
mailing list