Skip to content

Commit 7e13682

Browse files
author
duke
committed
Backport 5224e979a1cbce1b015e81aa7761743f60357d73
1 parent 8bbb1d2 commit 7e13682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java.base/share/classes/java/util/concurrent/SubmissionPublisher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ static final class BufferedSubscription<T>
10591059
final Subscriber<? super T> subscriber;
10601060
final BiConsumer<? super Subscriber<? super T>, ? super Throwable> onNextHandler;
10611061
Executor executor; // null on error
1062-
Thread waiter; // blocked producer thread
1062+
volatile Thread waiter; // blocked producer thread
10631063
Throwable pendingError; // holds until onError issued
10641064
BufferedSubscription<T> next; // used only by publisher
10651065
BufferedSubscription<T> nextRetry; // used only by publisher

0 commit comments

Comments
 (0)