diff --git a/libs/utils/include/utils/JobSystem.h b/libs/utils/include/utils/JobSystem.h index 8423134fa1..e1b00c9bc8 100644 --- a/libs/utils/include/utils/JobSystem.h +++ b/libs/utils/include/utils/JobSystem.h @@ -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;