Skip to content

Commit

Permalink
undo: can't reproduce the case where hook is NULL
Browse files Browse the repository at this point in the history
Signed-off-by: Aurelien Bouteiller <[email protected]>
  • Loading branch information
abouteiller committed Jan 22, 2024
1 parent 4f223c1 commit fc83826
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions parsec/scheduling.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,15 @@ int __parsec_execute( parsec_execution_stream_t* es,
}
}

parsec_hook_t *hook = tc->incarnations[chore_id].hook;
if( NULL == hook ) goto next_chore;
#if defined(PARSEC_DEBUG)
parsec_debug_verbose(5, parsec_debug_output, "Thread %d of VP %d Execute %s[%d] chore %d",
es->th_id, es->virtual_process->vp_id,
tmp, tc->incarnations[chore_id].type,
chore_id);
#endif
parsec_hook_t *hook = tc->incarnations[chore_id].hook;
assert( NULL != hook );
rc = hook( es, task );

#if defined(PARSEC_PROF_TRACE)
task->prof_info.task_return_code = rc;
#endif
Expand Down

0 comments on commit fc83826

Please sign in to comment.