make sure we never execute a job smaller than requested

This commit is contained in:
Mathias Agopian
2019-07-09 13:31:20 -07:00
committed by Mathias Agopian
parent 665703dbd8
commit 111b3320c0

View File

@@ -527,7 +527,7 @@ private:
size_type const end = first + count;
size_type curr = first;
while (curr + c < end) {
while (curr + 2u * c < end) {
// this creates jobs from the end of the buffer because the WorkStealingDequeue
// is a LIFO, this could help streaming to the d-cache.
const size_type pos = end - (curr - first) - c;