Polishing contribution

Closes gh-35978
This commit is contained in:
Brian Clozel
2025-12-08 16:10:20 +01:00
parent feb77f924a
commit e7e4b3559a
@@ -206,7 +206,7 @@ final class SubscriberInputStream<T> extends InputStream implements Flow.Subscri
}
private void resume() {
if (this.parkedThread != READY) {
if (this.parkedThread.get() != READY) {
Object old = this.parkedThread.getAndSet(READY);
if (old != READY) {
LockSupport.unpark((Thread) old);