[pypy-commit] pypy default: This breaks translation, don't allow setting stack limit on ootype for now.
ademan
noreply at buildbot.pypy.org
Sun Jul 3 05:33:45 CEST 2011
Author: Daniel Roberts <Ademan555 at gmail.com>
Branch:
Changeset: r45295:a5691d418d1e
Date: 2011-07-02 20:30 -0700
http://bitbucket.org/pypy/pypy/changeset/a5691d418d1e/
Log: This breaks translation, don't allow setting stack limit on ootype
for now.
diff --git a/pypy/module/sys/vm.py b/pypy/module/sys/vm.py
--- a/pypy/module/sys/vm.py
+++ b/pypy/module/sys/vm.py
@@ -57,7 +57,8 @@
raise OperationError(space.w_ValueError,
space.wrap("recursion limit must be positive"))
space.sys.recursionlimit = new_limit
- _stack_set_length_fraction(new_limit * 0.001)
+ if space.config.translation.type_system == 'lltype':
+ _stack_set_length_fraction(new_limit * 0.001)
def getrecursionlimit(space):
"""Return the last value set by setrecursionlimit().
More information about the pypy-commit
mailing list