RFR: 8308609: java/lang/ScopedValue/StressStackOverflow.java fails with "-XX:-VMContinuations" [v2]

Andrew Haley aph at openjdk.org
Mon Jun 12 14:09:59 UTC 2023


> Move `runWith()` from `VirtualThread` to `BaseVirtualThread`.
> 
> `BoundVirtualThread` does not use `runWith()` to run its task, so when a VM error occurs it can not recover scoped values.
> 
> Moving `runWith()` into the common subclass of both `VirtualThread` and `BoundVirtualThread` fixes the problem.

Andrew Haley has updated the pull request incrementally with two additional commits since the last revision:

 - Whitespace
 - Use RunWith in base Thread class & enable testing without VM Continuations.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/14399/files
  - new: https://git.openjdk.org/jdk/pull/14399/files/0f81c56a..3ab613fe

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

  Stats: 28 lines in 5 files changed: 7 ins; 16 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/14399.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14399/head:pull/14399

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


More information about the hotspot-dev mailing list