[pypy-commit] pypy invalidate-virtualrefs: fix the call to vref_finish in ec.leave()

antocuni noreply at buildbot.pypy.org
Wed May 25 20:27:21 CEST 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: invalidate-virtualrefs
Changeset: r44480:4f845a5a8b69
Date: 2011-05-25 15:08 +0200
http://bitbucket.org/pypy/pypy/changeset/4f845a5a8b69/

Log:	fix the call to vref_finish in ec.leave()

diff --git a/pypy/interpreter/executioncontext.py b/pypy/interpreter/executioncontext.py
--- a/pypy/interpreter/executioncontext.py
+++ b/pypy/interpreter/executioncontext.py
@@ -63,8 +63,9 @@
             if self.profilefunc:
                 self._trace(frame, 'leaveframe', w_exitvalue)
         finally:
+            vref = self.topframeref
             self.topframeref = frame.f_backref
-            jit.virtual_ref_finish(frame)
+            jit.virtual_ref_finish(vref, frame)
 
         if self.w_tracefunc is not None and not frame.hide():
             self.space.frame_trace_action.fire()


More information about the pypy-commit mailing list