Commit bff67ae3 authored by Wei Pan's avatar Wei Pan

Fix a bug in scheduler to stop infinite recursions

Change-Id: I5ec61f7b45aed52bf78b408041d321fcc22a258a
parent 384452b0
......@@ -1373,7 +1373,7 @@ unsigned LatencyQueue::calculatePriority(preNode* N)
Priority = std::max(Priority, SuccPriority + Latency);
}
return Priority;
return std::max(1U, Priority);
}
preNode* LatencyQueue::select()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment