@@ -284,6 +284,7 @@ void job_results_fetched(struct thr_info *mythr)
if (mythr->_proceed_with_new_job)
do_job_start(mythr);
else
+ if (likely(mythr->prev_work))
{
struct timeval tv_now;
@@ -325,6 +326,9 @@ void job_start_complete(struct thr_info *mythr)
+ if (unlikely(!mythr->prev_work))
+ return;
+
timer_set_now(&tv_now);
do_process_results(mythr, &tv_now, mythr->prev_work, false);