Move reserved space for global mutable state between existing global mutable state and modification iteration bit sets of first tiers

This commit is contained in:
leventov
2016-01-06 02:04:40 +03:00
parent fd58414bfa
commit 5191381fc5
@@ -261,7 +261,10 @@ public class ReplicatedChronicleMap<K, V, R> extends VanillaChronicleMap<K, V, R
@Override
public void onHeaderCreated() {
startOfModificationIterators = super.mapHeaderInnerSize();
// Pad modification iterators at 3 cache lines from the end of the map header,
// to avoid false sharing with the header of the first segment
startOfModificationIterators = super.mapHeaderInnerSize() +
RESERVED_GLOBAL_MUTABLE_STATE_BYTES - BYTES.convert(3, CACHE_LINES);
}
@Override