RFR: 8308609: java/lang/ScopedValue/StressStackOverflow.java fails with "-XX:-VMContinuations" [v7]
Alan Bateman
alanb at openjdk.org
Thu Jun 15 11:18:00 UTC 2023
On Thu, 15 Jun 2023 11:11:18 GMT, Andrew Haley <aph at openjdk.org> wrote:
>> 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:
>
> Don't share ThreadLocalRandom instance, cleanup.
I'd probably go further and drop the TLR parameter from the choose method too but what you have is fine, let's go with that.
-------------
Marked as reviewed by alanb (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/14399#pullrequestreview-1481324158
More information about the hotspot-dev
mailing list