This is an archive of the discontinued LLVM Phabricator instance.

fuzzfork allocating expected number of jobs
Needs ReviewPublic

Authored by devnexen on Dec 27 2019, 5:38 AM.

Details

Reviewers
kcc
hans
Summary

Instead of pushing a new thread to the list, allocating the number since we know it in advance.

Diff Detail

Event Timeline

devnexen created this revision.Dec 27 2019, 5:38 AM
devnexen created this object with edit policy "Administrators".
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 27 2019, 5:38 AM
Herald added subscribers: llvm-commits, Restricted Project, jfb. · View Herald Transcript
devnexen changed the edit policy from "Administrators" to "All Users".Jan 6 2020, 8:03 PM
hans added a comment.Jan 7 2020, 12:20 AM

Looks okay to me, but maybe expand the comment to explain what's going on and what the patch is doing. "fuzzfork allocating expected number of jobs" sounds more like a bug report than a fix.

devnexen edited the summary of this revision. (Show Details)Jan 7 2020, 2:31 AM
hans added a comment.Jan 7 2020, 2:59 AM

But was there a bug before, or is this just an optimization? Maybe it could just be an array instead?

But was there a bug before, or is this just an optimization? Maybe it could just be an array instead?

Just optimisation :-)

hans added a comment.Jan 7 2020, 4:55 AM

Okay, in that case I would personally just make it an array. But maybe kcc has opinions on this, so let's wait to hear from him.