[Swift-commit] cog r3427
swift at ci.uchicago.edu
swift at ci.uchicago.edu
Wed Jul 11 23:00:08 CDT 2012
------------------------------------------------------------------------
r3427 | hategan | 2012-07-11 22:55:52 -0500 (Wed, 11 Jul 2012) | 1 line
fixed CPUs being overwritten in the sleeping set
------------------------------------------------------------------------
Index: modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/job/manager/PullThread.java
===================================================================
--- modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/job/manager/PullThread.java (revision 3426)
+++ modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/job/manager/PullThread.java (working copy)
@@ -57,7 +57,10 @@
return 1;
}
else {
- return 0;
+ // need some arbitrary ordering for different
+ // cpus, otherwise cpus with the same quality
+ // will overwrite each other in the sleeping set
+ return System.identityHashCode(a) - System.identityHashCode(b);
}
}
});
More information about the Swift-commit
mailing list