Author: Armin Rigo <[email protected]>
Branch:
Changeset: r89760:94763a48e468
Date: 2017-01-25 11:41 +0100
http://bitbucket.org/pypy/pypy/changeset/94763a48e468/
Log: Avoid translating a filled cache (worst case, it might keep alive
some long-dead objects which ends up as static data)
diff --git a/pypy/objspace/std/typeobject.py b/pypy/objspace/std/typeobject.py
--- a/pypy/objspace/std/typeobject.py
+++ b/pypy/objspace/std/typeobject.py
@@ -88,6 +88,9 @@
for i in range(len(self.lookup_where)):
self.lookup_where[i] = None_None
+ def _cleanup_(self):
+ self.clear()
+
class _Global(object):
weakref_warning_printed = False
_global = _Global()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit