Skip to content

Commit 5224e97

Browse files
Viktor Klangjaikiran
authored and
Alan Bateman
committed
8293713: java/net/httpclient/BufferingSubscriberTest.java fails in timeout, blocked in submission publisher
Co-authored-by: Jaikiran Pai <jpai@openjdk.org> Reviewed-by: alanb
1 parent 9bfa082 commit 5224e97

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

+1-1
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)