Polishing contribution

Closes gh-35978
This commit is contained in:
Brian Clozel
2025-12-08 16:09:29 +01:00
parent 221adf14a4
commit 3b1fa369b4
@@ -209,7 +209,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);