[pypy-svn] r17157 - pypy/dist/pypy/interpreter
tismer at codespeak.net
tismer at codespeak.net
Thu Sep 1 23:00:37 CEST 2005
Author: tismer
Date: Thu Sep 1 23:00:36 2005
New Revision: 17157
Modified:
pypy/dist/pypy/interpreter/pyframe.py
Log:
fixed a pseudo-leak that ate quite some memory
on every app-level exception when pypy was compiled.
The point is that we don't break the cycle for frame.last_exception
in the context of having reference counting, only.
Modified: pypy/dist/pypy/interpreter/pyframe.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyframe.py (original)
+++ pypy/dist/pypy/interpreter/pyframe.py Thu Sep 1 23:00:36 2005
@@ -125,6 +125,8 @@
# leave that frame
w_exitvalue = e.w_exitvalue
executioncontext.return_trace(self, w_exitvalue)
+ # on exit, always release self.last_exception in case of no GC
+ self.last_exception = None
return w_exitvalue
### line numbers ###
More information about the Pypy-commit
mailing list