> 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 one additional commit since the last revision: Remove import ------------- Changes: - all: https://git.openjdk.org/jdk/pull/14399/files - new: https://git.openjdk.org/jdk/pull/14399/files/5902a70d..cb39ac52 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=14399&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14399&range=03-04 Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 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