[pypy-commit] lang-smalltalk default: (lwassermann, timfel) fix process creation for benchmark in mini image

timfel noreply at buildbot.pypy.org
Thu Apr 25 17:26:45 CEST 2013


Author: Tim Felgentreff <timfelgentreff at gmail.com>
Branch: 
Changeset: r342:2a275ccd6a6a
Date: 2013-04-25 15:57 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/2a275ccd6a6a/

Log:	(lwassermann, timfel) fix process creation for benchmark in mini
	image

diff --git a/targetimageloadingsmalltalk.py b/targetimageloadingsmalltalk.py
--- a/targetimageloadingsmalltalk.py
+++ b/targetimageloadingsmalltalk.py
@@ -32,7 +32,7 @@
     w_benchmark_proc.store(space, 1, s_frame.w_self())
 
     # third variable is priority
-    priority = 40
+    priority = space.unwrap_int(w_hpp.fetch(space, 2)) / 2 + 1
     w_benchmark_proc.store(space, 2, space.wrap_int(priority))
 
     # make process eligible for scheduling


More information about the pypy-commit mailing list