mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8308609: java/lang/ScopedValue/StressStackOverflow.java fails with "-XX:-VMContinuations"
Reviewed-by: alanb
This commit is contained in:
parent
b412fc79c3
commit
44a8aa0691
7 changed files with 82 additions and 70 deletions
|
@ -433,7 +433,8 @@ class ThreadBuilders {
|
|||
// run is specified to do nothing when Thread is a virtual thread
|
||||
if (Thread.currentThread() == this && !runInvoked) {
|
||||
runInvoked = true;
|
||||
task.run();
|
||||
Object bindings = Thread.scopedValueBindings();
|
||||
runWith(bindings, task);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue