[squeak-dev] problem while rehashing shrinked OrderedDictionary

christoph.thiede at student.hpi.uni-potsdam.de christoph.thiede at student.hpi.uni-potsdam.de
Mon Feb 7 16:21:02 UTC 2022


Hi all,

I just ran into this issue again while updating an older image that I had updated 8 months ago. So this seems to be a regression which effectively breaks our update stream if you were using OrderedDictionaries in older images already. Could - and should - we manipulate the update stream in any way to fix it again? :-)

Best,
Christoph

---
Sent from Squeak Inbox Talk

On 2021-11-29T20:18:13+01:00, leves at caesar.elte.hu wrote:

> Hi Nicolas,
> 
> 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.
> 
> 
> Levente
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220207/25c4169f/attachment.html>


More information about the Squeak-dev mailing list