Specify query operations

This commit is contained in:
leventov
2016-02-28 21:33:31 +07:00
parent dc4b578bef
commit f2ccfca801
5 changed files with 474 additions and 5 deletions
@@ -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;