Author: Lars Wassermann <lars.wasserm...@gmail.com> Branch: Changeset: r368:d058cc407ad5 Date: 2013-05-03 14:32 +0200 http://bitbucket.org/pypy/lang-smalltalk/changeset/d058cc407ad5/
Log: ensuring that our artificial benchmark-process is valid in newer Squeak versions diff --git a/targetimageloadingsmalltalk.py b/targetimageloadingsmalltalk.py --- a/targetimageloadingsmalltalk.py +++ b/targetimageloadingsmalltalk.py @@ -33,6 +33,8 @@ # third variable is priority priority = space.unwrap_int(w_hpp.fetch(space, 2)) / 2 + 1 + # Priorities below 10 are not allowed in newer versions of Squeak. + priority = max(10, priority) w_benchmark_proc.store(space, 2, space.wrap_int(priority)) # make process eligible for scheduling _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit