Carl Friedrich Bolz-Tereick pushed to branch branch/default at PyPy / pypy


Commits:
2463bd47 by Carl Friedrich Bolz-Tereick at 2021-05-29T21:49:47+02:00
(cfbolz, twitch) fix issue #2881: when switching from an unwrapped strategy to
the ObjectListStrategy, try to cache at least one wrapped element. This
prevents the memory blowup on code like this:

l = [0] * N
l[0] = "abc"

- - - - -


2 changed files:

- pypy/objspace/std/listobject.py
- pypy/objspace/std/test/test_listobject.py


View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/2463bd4781e2ff6334c5399179386720d5e71f81

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/2463bd4781e2ff6334c5399179386720d5e71f81
You're receiving this email because of your account on foss.heptapod.net.


_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to