[compiler-rt] r354000 - [libFuzzer] trying to fix the bot (can't reproduce the build failure locally)

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 13 17:11:29 PST 2019


Author: kcc
Date: Wed Feb 13 17:11:29 2019
New Revision: 354000

URL: http://llvm.org/viewvc/llvm-project?rev=354000&view=rev
Log:
[libFuzzer] trying to fix the bot (can't reproduce the build failure locally)

Modified:
    compiler-rt/trunk/lib/fuzzer/FuzzerFork.cpp

Modified: compiler-rt/trunk/lib/fuzzer/FuzzerFork.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerFork.cpp?rev=354000&r1=353999&r2=354000&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerFork.cpp (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerFork.cpp Wed Feb 13 17:11:29 2019
@@ -15,6 +15,7 @@
 #include "FuzzerSHA1.h"
 #include "FuzzerUtil.h"
 
+#include <atomic>
 #include <mutex>
 #include <thread>
 #include <queue>
@@ -121,7 +122,7 @@ struct JobQueue {
 };
 
 void WorkerThread(std::atomic<bool> *Stop, JobQueue *FuzzQ, JobQueue *MergeQ) {
-  while (!*Stop) {
+  while (!Stop->load()) {
     auto Job = FuzzQ->Pop();
     // Printf("WorkerThread: job %p\n", Job);
     if (!Job) {




More information about the llvm-commits mailing list