From 96cee73f26d998cf9d4fa94a7204b61ef3987f0c Mon Sep 17 00:00:00 2001 From: leventov Date: Wed, 7 Oct 2015 16:51:21 +0300 Subject: [PATCH] Unconditional zeroing out of newly allocated memory, because 1) it is very slow in Java-Lang 6.7.3 due to a bug 2) not clear which way is better, see HCOLL-401 --- .../openhft/chronicle/hash/impl/VanillaChronicleHash.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/openhft/chronicle/hash/impl/VanillaChronicleHash.java b/src/main/java/net/openhft/chronicle/hash/impl/VanillaChronicleHash.java index 1c001e684..960ba8234 100644 --- a/src/main/java/net/openhft/chronicle/hash/impl/VanillaChronicleHash.java +++ b/src/main/java/net/openhft/chronicle/hash/impl/VanillaChronicleHash.java @@ -354,7 +354,7 @@ public abstract class VanillaChronicleHash 0) { // These bytes are bit sets in Replicated version - bytes.zeroOut(firstTierOffset - tierBulkInnerOffsetToTiers, firstTierOffset, true); + bytes.zeroOut(firstTierOffset - tierBulkInnerOffsetToTiers, firstTierOffset); } // Link newly allocated tiers into free tiers list