mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
fixed latency issues with CheckedBytesStore
This commit is contained in:
@@ -232,10 +232,10 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super KI>,
|
||||
final long createMappedStoreAndSegments(BytesStore bytesStore) throws IOException {
|
||||
// checks the the store has not been closed
|
||||
// todo remove the CheckedBytesStore before the release
|
||||
//this.ms = new CheckedBytesStore(bytesStore);
|
||||
this.ms = new CheckedBytesStore(bytesStore);
|
||||
|
||||
|
||||
this.ms = bytesStore;
|
||||
// this.ms = bytesStore;
|
||||
|
||||
onHeaderCreated();
|
||||
|
||||
@@ -533,13 +533,13 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super KI>,
|
||||
}
|
||||
|
||||
@Override
|
||||
public final V putIfAbsent( K key, V value) {
|
||||
if (key == null )
|
||||
public final V putIfAbsent(K key, V value) {
|
||||
if (key == null)
|
||||
throw new NullPointerException();
|
||||
return put1(key, value, false);
|
||||
}
|
||||
|
||||
V put1( K key, V value, boolean replaceIfPresent) {
|
||||
V put1(K key, V value, boolean replaceIfPresent) {
|
||||
if (key == null)
|
||||
throw new NullPointerException();
|
||||
checkKey(key);
|
||||
|
||||
Reference in New Issue
Block a user