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

Alan Bateman alanb at openjdk.org
Fri Jun 16 12:58:14 UTC 2023


On Thu, 15 Jun 2023 11:45:04 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:
> 
>   Correct catch a top level.

I didn't spot this before it was integrated but test/hotspot/jtreg/serviceability/jvmti/thread/GetStackTrace/getstacktr03/libgetstacktr03.cpp is sensitive to the stack trace so its like of expected frames will be take account of runWith no longer be overridden in the sub-class.

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

PR Comment: https://git.openjdk.org/jdk/pull/14399#issuecomment-1594632634


More information about the core-libs-dev mailing list