Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: pypy-jitdriver-greenkeys
Changeset: r98692:42d012e08816
Date: 2020-02-09 22:31 +0100
http://bitbucket.org/pypy/pypy/changeset/42d012e08816/
Log: random finding: return early in this safety checking function in the
JIT (I looked at jitcodes, it doesn't get removed)
diff --git a/pypy/interpreter/pyframe.py b/pypy/interpreter/pyframe.py
--- a/pypy/interpreter/pyframe.py
+++ b/pypy/interpreter/pyframe.py
@@ -311,6 +311,8 @@
self.valuestackdepth = depth + 1
def _check_stack_index(self, index):
+ if jit.we_are_jitted():
+ return True
# will be completely removed by the optimizer if only used in an assert
# and if asserts are disabled
code = self.pycode
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit