Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

small bug fixes

  • Loading branch information...
commit 8698480aec38373a1cb32a1544966475a2ee3e98 1 parent 4a4fbf9
sriram srinivasan authored
View
3  src/kilim/RingQueue.java
@@ -79,6 +79,9 @@ public boolean contains(T obj) {
return false;
}
+ public void reset() {
+ icons = iprod = 0;
+ }
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
View
2  src/kilim/Scheduler.java
@@ -23,7 +23,7 @@
LinkedList<WorkerThread> allThreads = new LinkedList<WorkerThread>();
LinkedList<WorkerThread> waitingThreads = new LinkedList<WorkerThread>();
protected boolean shutdown = false;
- protected RingQueue<Task> runnableTasks = new RingQueue<Task>(1000);
+ protected RingQueue<Task> runnableTasks = new RingQueue<Task>(100);
static {
String s = System.getProperty("kilim.Scheduler.numThreads");
View
1  src/kilim/Task.java
@@ -350,6 +350,7 @@ public void _runExecute(WorkerThread thread) throws NotPausable {
}
if (isDone) {
+ done = true;
// inform on exit
if (numActivePins > 0) {
throw new AssertionError("Task ended but has active locks");
Please sign in to comment.
Something went wrong with that request. Please try again.