<div dir="ltr">Hi Carl,<div><br></div><div>At the moment this shouldn't affect anything, this function is only called in other places with loops. However, this is based on the same logic we used in getnextframe_nohidden, and I believe is a first step in making sys.exc_info() not explode stuff :)</div>
<div><br></div><div>Alex</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 31, 2013 at 11:44 PM, Carl Friedrich Bolz <span dir="ltr"><<a href="mailto:cfbolz@gmx.de" target="_blank">cfbolz@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><p>Hi Alex, </p>
<p>This needs a corresponding test in test_pypy_c.py </p>
<p>Cheers, </p>
<p>Carl Friedrich </p>
<br><br><div class="gmail_quote">alex_gaynor <<a href="mailto:noreply@buildbot.pypy.org" target="_blank">noreply@buildbot.pypy.org</a>> wrote:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<pre style="white-space:pre-wrap;word-wrap:break-word;font-family:sans-serif;margin-top:0px"><div class="im">Author: Alex Gaynor <<a href="mailto:alex.gaynor@gmail.com" target="_blank">alex.gaynor@gmail.com</a>><br>
Branch: <br>Changeset: r60800:9aeefdb4841d<br>Date: 2013-01-31 17:54 -0800<br><a href="http://bitbucket.org/pypy/pypy/changeset/9aeefdb4841d" target="_blank">http://bitbucket.org/pypy/pypy/changeset/9aeefdb4841d</a>/<br><br>
Log: hidden frames are fairly rare, it's ok to unroll this<br><br>diff --git a/pypy/interpreter/<a href="http://executioncontext.py" target="_blank">executioncontext.py</a> b/pypy/interpreter/<a href="http://executioncontext.py" target="_blank">executioncontext.py</a><br>
--- a/pypy/interpreter/<a href="http://executioncontext.py" target="_blank">executioncontext.py</a><br>+++ b/pypy/interpreter/<a href="http://executioncontext.py" target="_blank">executioncontext.py</a><br>@@ -40,6 +40,7 @@<br>
def gettopframe(self):<br>return self.topframeref()<br><br>+    @jit.unroll_safe<br>def gettopframe_nohidden(self):<br>frame = self.topframeref()<br>while frame and
frame.hide():<br><hr><br></div><div class="im">pypy-commit mailing list<br><a href="mailto:pypy-commit@python.org" target="_blank">pypy-commit@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/pypy-commit" target="_blank">http://mail.python.org/mailman/listinfo/pypy-commit</a><br>
</div></pre></blockquote></div><br>
<br>
</div></div><br>_______________________________________________<br>
pypy-dev mailing list<br>
<a href="mailto:pypy-dev@python.org">pypy-dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/pypy-dev" target="_blank">http://mail.python.org/mailman/listinfo/pypy-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>"I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire)<br>"The people's good is the highest law." -- Cicero<br>

</div>