Make BiMap implementation dually thread-safe and consistent

This commit is contained in:
leventov
2015-05-27 16:27:32 +01:00
parent 7013d58694
commit 0fe747f688
2 changed files with 192 additions and 20 deletions
@@ -324,12 +324,7 @@ public class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super
@Override
public void clear() {
try (QueryContextInterface<?, ?, ?> cxt = mapContext()) {
for (int i = 0; i < actualSegments; i++) {
cxt.initTheSegmentIndex(i);
cxt.clear();
}
}
forEachEntry(KeyContext::remove);
}
public final long readValueSize(Bytes entry) {