HCOLL-244 fixed a bug in VanillaChornicleMap

This commit is contained in:
leventov
2014-12-30 01:05:38 +07:00
parent f7b52ddd69
commit 20cde48b55
3 changed files with 9 additions and 5 deletions
@@ -80,8 +80,8 @@ enum MultiMapFactory {
throw new IllegalArgumentException("Capacity " + capacity + " not supported");
}
public static long sizeOfBitSetInBytes(long minCapacity) {
return BYTES.convert(LONGS.align(multiMapCapacity(minCapacity), BITS), BITS);
public static long sizeOfBitSetInBytes(long actualChunksPerSegment) {
return LONGS.align(BYTES.alignAndConvert(actualChunksPerSegment, BITS), BYTES);
}
public static ATSDirectBitSet newPositions(long capacity) {