[PATCH] D71923: fuzzfork allocating expected number of jobs
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 6 18:46:04 PST 2020
Why this is created with: "created this object with edit policy
"Administrators"." ?
and
for (auto& t : Threads) {
t = std::....
On Fri, Dec 27, 2019 at 5:41 AM David CARLIER via Phabricator <
reviews at reviews.llvm.org> wrote:
> devnexen created this revision.
> devnexen added reviewers: kcc, hans.
> devnexen created this object with edit policy "Administrators".
> Herald added subscribers: llvm-commits, Sanitizers, jfb.
> Herald added projects: LLVM, Sanitizers.
>
> Repository:
> rCRT Compiler Runtime
>
> https://reviews.llvm.org/D71923
>
> Files:
> compiler-rt/lib/fuzzer/FuzzerFork.cpp
>
>
> Index: compiler-rt/lib/fuzzer/FuzzerFork.cpp
> ===================================================================
> --- compiler-rt/lib/fuzzer/FuzzerFork.cpp
> +++ compiler-rt/lib/fuzzer/FuzzerFork.cpp
> @@ -329,9 +329,9 @@
> };
>
> size_t JobId = 1;
> - Vector<std::thread> Threads;
> + Vector<std::thread> Threads(NumJobs);
> for (int t = 0; t < NumJobs; t++) {
> - Threads.push_back(std::thread(WorkerThread, &FuzzQ, &MergeQ));
> + Threads[t] = std::thread(WorkerThread, &FuzzQ, &MergeQ);
> FuzzQ.Push(Env.CreateNewJob(JobId++));
> }
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200106/291779e5/attachment.html>
More information about the llvm-commits
mailing list