mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Specify query operations
This commit is contained in:
@@ -684,6 +684,8 @@ public abstract class SegmentStages implements SegmentLock, LocksInterface {
|
||||
if (fromPos + newChunks < hh.h().actualChunksPerSegmentTier &&
|
||||
freeList.isRangeClear(fromPos + oldChunks, fromPos + newChunks)) {
|
||||
freeList.setRange(fromPos + oldChunks, fromPos + newChunks);
|
||||
// checking and updating lowestPossiblyFreeChunk is omitted because adds computational
|
||||
// complexity for seemingly very small gain
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
@@ -16,14 +16,11 @@
|
||||
|
||||
package net.openhft.chronicle.map;
|
||||
|
||||
import net.openhft.chronicle.algo.hashing.LongHashFunction;
|
||||
import net.openhft.chronicle.core.values.IntValue;
|
||||
import net.openhft.chronicle.values.Values;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
Reference in New Issue
Block a user