mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Review Exception throwing and handling throughtput the library, create specific InterProcessDeadLockException for Chronicle Map deadlocks
This commit is contained in:
@@ -62,7 +62,7 @@ public abstract class CompactOffHeapLinearHashTable {
|
||||
|
||||
public static long capacityFor(long entriesPerSegment) {
|
||||
if (entriesPerSegment < 0L)
|
||||
throw new AssertionError("entriesPerSegment should be positive");
|
||||
throw new AssertionError("entriesPerSegment should be positive: " + entriesPerSegment);
|
||||
long capacity = Maths.nextPower2(entriesPerSegment, 64L);
|
||||
if (entriesPerSegment > MAX_UPPER_BOUND_LOAD_FACTOR * capacity)
|
||||
capacity *= 2;
|
||||
|
||||
Reference in New Issue
Block a user