mirror of
https://github.com/corda/corda.git
synced 2024-12-21 13:57:54 +00:00
Merge pull request #7527 from corda/merge-release/os/4.11-release/os/4.12-2023-10-06-13
ENT-10860: Merging forward updates from release/os/4.11 to release/os/4.12 - 2023-10-06
This commit is contained in:
commit
0bc5ae1234
@ -76,8 +76,7 @@ public class SharedMemoryIncremental extends PortAllocation {
|
||||
newValue = (oldValue + 1);
|
||||
}
|
||||
boolean reserveSuccess = UNSAFE.compareAndSwapLong(null, startingAddress, oldValue, newValue);
|
||||
boolean portAvailable = isLocalPortAvailable(newValue);
|
||||
loopSuccess = reserveSuccess && portAvailable;
|
||||
loopSuccess = reserveSuccess && isLocalPortAvailable(newValue);
|
||||
} while (!loopSuccess);
|
||||
|
||||
return (int) newValue;
|
||||
|
Loading…
Reference in New Issue
Block a user