Author: Armin Rigo <ar...@tunes.org>
Branch: stm-thread-2
Changeset: r61606:b7e9b01e26eb
Date: 2013-02-22 14:22 +0100
http://bitbucket.org/pypy/pypy/changeset/b7e9b01e26eb/

Log:    Don't show the hidden_applevel frames.

diff --git a/pypy/module/thread/stm.py b/pypy/module/thread/stm.py
--- a/pypy/module/thread/stm.py
+++ b/pypy/module/thread/stm.py
@@ -29,12 +29,16 @@
 
 def enter_frame(ec, frame):
     """Called from ExecutionContext.enter()."""
+    if frame.hide():
+        return
     rstm.abort_info_push(frame.pycode, ('[', 'co_filename', 'co_name',
                                         'co_firstlineno', 'co_lnotab'))
     rstm.abort_info_push(frame, ('last_instr', ']'))
 
 def leave_frame(ec, frame):
     """Called from ExecutionContext.leave()."""
+    if frame.hide():
+        return
     rstm.abort_info_pop(2)
 
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to