This is an archive of the discontinued LLVM Phabricator instance.

[runtime] Fixed hang when explicit task created inside a taskloop.
ClosedPublic

Authored by AndreyChurbanov on Mar 5 2020, 4:13 AM.

Details

Summary

Added missed initialization of the td_last_tied field for taskloop tasks.

Without this the test hang because of task-stealing-constraint mistakenly prevented child tasks to be executed by the parent.

Diff Detail

Event Timeline

AndreyChurbanov created this revision.Mar 5 2020, 4:13 AM

Adde check of task tiedness, and comment on why this is needed.

hbae accepted this revision.Mar 23 2020, 6:30 AM

LGTM.

This revision is now accepted and ready to land.Mar 23 2020, 6:30 AM
This revision was automatically updated to reflect the committed changes.