RFR: 8278053: serviceability/jvmti/vthread/ContStackDepthTest/ContStackDepthTest.java failing in loom repo with Xcomp
Ron Pressler
rpressler at openjdk.java.net
Tue Jun 14 12:24:55 UTC 2022
Please review the following fix.
When JVM TI puts a thread's state in `interp_only_mode`, thaw takes the slow path and deoptimizes frames as they're thawed in `recurse_thaw_compiled_frame`. However, thawing a deoptimized frame's callee will override the frame's patched pc (to the deopt handler), essentially reverting the deoptimization. This fix patches the deoptimized return address after thawing the callee.
Passes loom tiers 1-5
-------------
Commit messages:
- Clarify comment
- Remove tests from exclude list
- Patch caller pc
Changes: https://git.openjdk.org/jdk19/pull/12/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk19&pr=12&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8278053
Stats: 6 lines in 2 files changed: 3 ins; 3 del; 0 mod
Patch: https://git.openjdk.org/jdk19/pull/12.diff
Fetch: git fetch https://git.openjdk.org/jdk19 pull/12/head:pull/12
PR: https://git.openjdk.org/jdk19/pull/12
More information about the hotspot-runtime-dev
mailing list