mirror of
https://github.com/corda/corda.git
synced 2025-01-31 00:24:59 +00:00
Merge pull request #7522 from corda/merge-release/os/4.7-release/os/4.8-2023-10-05-4
ENT-10860: Merging forward updates from release/os/4.7 to release/os/4.8 - 2023-10-05
This commit is contained in:
commit
aa77154601
@ -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…
x
Reference in New Issue
Block a user