[pypy-commit] pypy jit-leaner-frontend: be a bit more specific about problems
fijal
pypy.commits at gmail.com
Fri Mar 25 10:17:45 EDT 2016
Author: fijal
Branch: jit-leaner-frontend
Changeset: r83361:dc43144bc017
Date: 2016-03-25 16:16 +0200
http://bitbucket.org/pypy/pypy/changeset/dc43144bc017/
Log: be a bit more specific about problems
diff --git a/rpython/rlib/jit.py b/rpython/rlib/jit.py
--- a/rpython/rlib/jit.py
+++ b/rpython/rlib/jit.py
@@ -782,6 +782,12 @@
"""Reset one of the tunable JIT parameters to its default value."""
_set_param(driver, name, None)
+class TraceLimitTooHigh(Exception):
+ """ This is raised when the trace limit is too high for the chosen
+ opencoder model, recompile your interpreter with 'big' as
+ jit_opencoder_model
+ """
+
def set_user_param(driver, text):
"""Set the tunable JIT parameters from a user-supplied string
following the format 'param=value,param=value', or 'off' to
@@ -809,6 +815,8 @@
for name1, _ in unroll_parameters:
if name1 == name and name1 != 'enable_opts':
try:
+ if name1 == 'trace_limit' and int(value) > 2**14:
+ raise TraceLimitTooHigh
set_param(driver, name1, int(value))
except ValueError:
raise
More information about the pypy-commit
mailing list