Author: Armin Rigo <[email protected]>
Branch:
Changeset: r78733:f63efb5d2ffa
Date: 2015-08-01 12:07 +0200
http://bitbucket.org/pypy/pypy/changeset/f63efb5d2ffa/
Log: Workaround for issue #2102.
Can't write a small test for this case, and I've no clue if in this
case it means that invalid codemap was produced earlier.
diff --git a/rpython/jit/backend/llsupport/codemap.py
b/rpython/jit/backend/llsupport/codemap.py
--- a/rpython/jit/backend/llsupport/codemap.py
+++ b/rpython/jit/backend/llsupport/codemap.py
@@ -157,6 +157,8 @@
self.l.append(0) # second marker
def leave_portal_frame(self, jd_id, relpos):
+ if len(self.patch_position) < 1:
+ return # XXX should not occur, but does (issue #2102)
to_patch = self.patch_position.pop()
self.l[to_patch] = relpos
self.l[to_patch + 1] = len(self.l)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit