mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 08:24:13 +00:00
Merge branch '7.0.x'
This commit is contained in:
@@ -190,7 +190,7 @@ final class SubscriberInputStream<T> extends InputStream implements Flow.Subscri
|
||||
}
|
||||
|
||||
int addWork() {
|
||||
for (;;) {
|
||||
while (true) {
|
||||
int produced = this.workAmount.getPlain();
|
||||
|
||||
if (produced == Integer.MIN_VALUE) {
|
||||
@@ -319,7 +319,7 @@ final class SubscriberInputStream<T> extends InputStream implements Flow.Subscri
|
||||
this.available = null;
|
||||
|
||||
int actualWorkAmount = this.workAmount.getAcquire();
|
||||
for (;;) {
|
||||
while (true) {
|
||||
if (this.closed) {
|
||||
return CLOSED;
|
||||
}
|
||||
@@ -354,7 +354,7 @@ final class SubscriberInputStream<T> extends InputStream implements Flow.Subscri
|
||||
void cleanAndFinalize() {
|
||||
this.available = null;
|
||||
|
||||
for (;;) {
|
||||
while (true) {
|
||||
int workAmount = this.workAmount.getPlain();
|
||||
T value;
|
||||
while ((value = this.queue.poll()) != null) {
|
||||
|
||||
+1
-1
@@ -180,7 +180,7 @@ public abstract class AbstractListenerWriteProcessor<T> implements Processor<T,
|
||||
*/
|
||||
void cancelAndSetCompleted() {
|
||||
cancel();
|
||||
for (;;) {
|
||||
while (true) {
|
||||
State prev = this.state.get();
|
||||
if (prev == State.COMPLETED) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user