[pypy-svn] r69384 - pypy/branch/faster-raise/pypy/interpreter

arigo at codespeak.net arigo at codespeak.net
Wed Nov 18 16:52:20 CET 2009


Author: arigo
Date: Wed Nov 18 16:52:20 2009
New Revision: 69384

Modified:
   pypy/branch/faster-raise/pypy/interpreter/pyframe.py
Log:
Reintroduce this, reverting r69182.
Comment about why it seems to still be useful.


Modified: pypy/branch/faster-raise/pypy/interpreter/pyframe.py
==============================================================================
--- pypy/branch/faster-raise/pypy/interpreter/pyframe.py	(original)
+++ pypy/branch/faster-raise/pypy/interpreter/pyframe.py	Wed Nov 18 16:52:20 2009
@@ -159,6 +159,11 @@
                 raise
             if not we_are_jitted():
                 executioncontext.return_trace(self, w_exitvalue)
+            # on exit, we try to release self.last_exception -- breaks an
+            # obvious reference cycle, so it used to help refcounting
+            # implementations.  Nowaways, it helps ExecutionContext._unchain()
+            # by saying "this frame does not throw an exception".
+            self.last_exception = None
         finally:
             executioncontext.leave(self)
         return w_exitvalue



More information about the Pypy-commit mailing list