This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author minrk
Recipients minrk
Date 2016-09-14.11:47:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473853628.51.0.306869188294.issue28147@psf.upfronthosting.co.za>
In-reply-to
Content
This patch fixes the memory leak in split-dict resizing.

Each time dict_resize is called, it gets a new, larger size `> minused`. If this is triggered many times, it will keep growing in size by a factor of two each time, as the previous size is passed as minused for the next call.

Set the lower bound at minused (inclusive), rather than exclusive, so that the size does not continue to increase for repeated calls.

A test is added to test_dict.py based on the earlier test script, but if someone has a simpler way to trigger the split-dict resize events, I'd be happy to see it.
History
Date User Action Args
2016-09-14 11:47:08minrksetrecipients: + minrk
2016-09-14 11:47:08minrksetmessageid: <1473853628.51.0.306869188294.issue28147@psf.upfronthosting.co.za>
2016-09-14 11:47:08minrklinkissue28147 messages
2016-09-14 11:47:08minrkcreate