RFR: 8306679: com/sun/jdi/InterruptHangTest.java asserts with -Xcomp -Dmain.wrapper=Virtual options [v2]

Serguei Spitsyn sspitsyn at openjdk.org
Sat Sep 14 11:15:37 UTC 2024


> The test is failing with virtual threads because the `cur_stack_depth()` of a virtual thread executed in `interp_only` mode is invalidated conditionally in the `ThawBase::thaw_slow()`:
> ```JVMTI_ONLY(if (!return_barrier) invalidate_jvmti_stack(_thread));```
> 
> It has to be invalidated unconditionally instead:
> ```JVMTI_ONLY(invalidate_jvmti_stack(_thread));```
> 
> Testing:
>  - ran the test `com/sun/jdi/InterruptHangTest.java` locally and with mach5
>  - the mach5 tiers 1-6 all passed

Serguei Spitsyn has updated the pull request incrementally with one additional commit since the last revision:

  return InterruptHangTest.java to ProblemList-Xcomp.txt under 8043571

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20943/files
  - new: https://git.openjdk.org/jdk/pull/20943/files/3f40efef..05e0d68e

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20943&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20943&range=00-01

  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/20943.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20943/head:pull/20943

PR: https://git.openjdk.org/jdk/pull/20943


More information about the hotspot-runtime-dev mailing list