8293713: java/net/httpclient/BufferingSubscriberTest.java fails in timeout, blocked in submission publisher

Co-authored-by: Jaikiran Pai <jpai@openjdk.org>
Reviewed-by: alanb
This commit is contained in:
Viktor Klang 2023-10-24 10:38:58 +00:00 committed by Alan Bateman
parent 9bfa082970
commit 5224e979a1

View file

@ -1059,7 +1059,7 @@ public class SubmissionPublisher<T> implements Publisher<T>,
final Subscriber<? super T> subscriber;
final BiConsumer<? super Subscriber<? super T>, ? super Throwable> onNextHandler;
Executor executor; // null on error
Thread waiter; // blocked producer thread
volatile Thread waiter; // blocked producer thread
Throwable pendingError; // holds until onError issued
BufferedSubscription<T> next; // used only by publisher
BufferedSubscription<T> nextRetry; // used only by publisher