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