[squeak-dev] problem while rehashing shrinked OrderedDictionary
leves at caesar.elte.hu
Mon Nov 29 19:18:13 UTC 2021
On Sun, 28 Nov 2021, Nicolas Cellier wrote:
> Hi all,
> I got a few hiccups while updating some images.
> One of them occurred while rehashing some OrderedDictionary.
> For some reason, the dictionary was shrinked.
> Unfortunately rehash then tries to grow the 'order' ivar by a negative growSize.
> This causes an errorSubscriptBounds:
> To reproduce, simply try:
> OrderedDictionary new compact.
Thanks. That example made it easy to track down what causes the problem.
Collections-ul.962 should have it fixed.
The ideal solution would be to finally change the order variable to be an
OrderedCollection, so that OrderedDictionary wouldn't have to reimplement
most of the logic.
More information about the Squeak-dev