Skip to content

Commit b1fa9e0

Browse files
author
kcc
committed
[libFuzzer] trying to fix the bot (can't reproduce the build failure locally)
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/fuzzer@354000 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 6526f1d commit b1fa9e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FuzzerFork.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "FuzzerSHA1.h"
1616
#include "FuzzerUtil.h"
1717

18+
#include <atomic>
1819
#include <mutex>
1920
#include <thread>
2021
#include <queue>
@@ -121,7 +122,7 @@ struct JobQueue {
121122
};
122123

123124
void WorkerThread(std::atomic<bool> *Stop, JobQueue *FuzzQ, JobQueue *MergeQ) {
124-
while (!*Stop) {
125+
while (!Stop->load()) {
125126
auto Job = FuzzQ->Pop();
126127
// Printf("WorkerThread: job %p\n", Job);
127128
if (!Job) {

0 commit comments

Comments
 (0)