mirror of
https://github.com/corda/corda.git
synced 2024-12-24 23:26:48 +00:00
Merging forward updates from release/os/4.10 to release/os/4.11 - 2023-10-06
This commit is contained in:
commit
67837523ab
@ -76,8 +76,7 @@ public class SharedMemoryIncremental extends PortAllocation {
|
|||||||
newValue = (oldValue + 1);
|
newValue = (oldValue + 1);
|
||||||
}
|
}
|
||||||
boolean reserveSuccess = UNSAFE.compareAndSwapLong(null, startingAddress, oldValue, newValue);
|
boolean reserveSuccess = UNSAFE.compareAndSwapLong(null, startingAddress, oldValue, newValue);
|
||||||
boolean portAvailable = isLocalPortAvailable(newValue);
|
loopSuccess = reserveSuccess && isLocalPortAvailable(newValue);
|
||||||
loopSuccess = reserveSuccess && portAvailable;
|
|
||||||
} while (!loopSuccess);
|
} while (!loopSuccess);
|
||||||
|
|
||||||
return (int) newValue;
|
return (int) newValue;
|
||||||
|
Loading…
Reference in New Issue
Block a user