RFR: 8316397: StackTrace/Suspended/GetStackTraceSuspendedStressTest.java failed with: SingleStep event is NOT expected [v7]
Serguei Spitsyn
sspitsyn at openjdk.org
Thu Apr 3 06:57:36 UTC 2025
> The `get_jvmti_thread_state()` function is called from `JvmtiExport::at_single_stepping_point()`. It can block for virtual threads. Then the `SingleStep` events can be enabled at that point. The incorrect behavior is that the `SingleStep` events will be posted even though the virtual thread has been suspended with the JVMTI `SuspendThread`, `SuspendThreadList`, or `SuspendAllVirtualThreads`. The fix is to add a suspend point for virtual threads to the `get_jvmti_thread_state()` function.
>
> Testing:
> - Ran mach5 tiers 1-6
Serguei Spitsyn has updated the pull request incrementally with one additional commit since the last revision:
review: add workaround for post_dynamic_code_generated_while_holding_locks
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/23490/files
- new: https://git.openjdk.org/jdk/pull/23490/files/d6c647a3..39e8d748
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=23490&range=06
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=23490&range=05-06
Stats: 4 lines in 2 files changed: 0 ins; 0 del; 4 mod
Patch: https://git.openjdk.org/jdk/pull/23490.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23490/head:pull/23490
PR: https://git.openjdk.org/jdk/pull/23490
More information about the hotspot-runtime-dev
mailing list