change to s.freeExtra(pos+1, entrySizeInChunks, newSizeInChunks);

This commit is contained in:
Rob Austin
2018-11-15 21:17:26 +00:00
parent 2f6e9441d7
commit 9a02d8e250
@@ -148,7 +148,7 @@ public abstract class MapEntryStages<K, V> extends HashEntryStages<K>
relocation(newValue, newSizeOfEverythingBeforeValue);
return;
} else if (newSizeInChunks < entrySizeInChunks) {
s.freeExtra(pos, entrySizeInChunks, newSizeInChunks);
s.freeExtra(pos + 1, entrySizeInChunks, newSizeInChunks);
}
// new size != old size => size is not constant => size is actually written =>
// to prevent (at least) this execution: