This is an archive of the discontinued LLVM Phabricator instance.

[Core] Fix parallel_for for Linux
ClosedPublic

Authored by jhenderson on Apr 6 2017, 9:15 AM.

Details

Reviewers
ruiu
Summary

rL299635 exposed a latent bug in the Linux implementation of parallel_for, which resulted in it calling the function outside of the range requested, resulting later in a segmentation fault. This change fixes this issue and adds a unit test.

Diff Detail

Event Timeline

jhenderson created this revision.Apr 6 2017, 9:15 AM
ruiu accepted this revision.Apr 6 2017, 1:33 PM

LGTM. Wow, that seems like a dangerous bug. Thank you for finding and fixing!

This revision is now accepted and ready to land.Apr 6 2017, 1:33 PM
jhenderson closed this revision.Apr 7 2017, 1:27 AM

Closed by rL299748 (I forgot to add the Differential Revision tag to the commit message...).