New issue 2590: finalizers heavily stress GC
https://bitbucket.org/pypy/pypy/issues/2590/finalizers-heavily-stress-gc

Philip Jenvey:

@alex_gaynor's script demonstrates app level `__del__`s:

```
#!python

import random
import sys

class A(object):
        def __del__(self):
                pass


class B(object):
        pass

cls = {"A": A, "B": B}[sys.argv[1]]

while True:
        # Gibberish to make sure the JIT doesn't optimize the allocation away
        [cls()] * random.randint(1, 1)
```

"A" shooting RSS up to 1-2GB pretty quickly vs "B" holding steady =~ 20mb.

massif+pypy2-5.6 on "A":
https://pastebin.mozilla.org/9025519


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

Reply via email to