Author: Patrick Rein <[email protected]>
Branch: stmgc-c7
Changeset: r1033:48efd13caa41
Date: 2014-08-10 16:18 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/48efd13caa41/
Log: Possible fix of a off by one fault in the SchedulerWrapper
diff --git a/spyvm/wrapper.py b/spyvm/wrapper.py
--- a/spyvm/wrapper.py
+++ b/spyvm/wrapper.py
@@ -205,7 +205,8 @@
def get_process_list(self, priority):
lists = Wrapper(self.space, self.priority_list())
- return ProcessListWrapper(self.space, lists.read(priority))
+ # priority - 1 as listWrapper is 0 indexed and Priorities start at 1
+ return ProcessListWrapper(self.space, lists.read(priority - 1))
def pop_highest_priority_process(self):
w_lists = self.priority_list()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit