If tryLock fails to get the lock another gc has it
Change-Id: Ifd3bbcc5e0591883b774d23256949a83010ea134
This commit is contained in:
parent
1691e38779
commit
d9f75e8bb2
|
@ -1650,7 +1650,7 @@ boolean lock() throws IOException {
|
||||||
channel = f.getChannel();
|
channel = f.getChannel();
|
||||||
lock = channel.tryLock();
|
lock = channel.tryLock();
|
||||||
if (lock == null || !lock.isValid()) {
|
if (lock == null || !lock.isValid()) {
|
||||||
failedToLock();
|
gcAlreadyRunning();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
channel.write(ByteBuffer
|
channel.write(ByteBuffer
|
||||||
|
|
Loading…
Reference in New Issue