mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-17 00:27:31 +00:00
[libFuzzer] don't reload the corpus more than once every second
llvm-svn: 254824
This commit is contained in:
parent
20a7c0b0dd
commit
d2117b7607
@ -468,10 +468,15 @@ void Fuzzer::Drill() {
|
||||
}
|
||||
|
||||
void Fuzzer::Loop() {
|
||||
system_clock::time_point LastCorpusReload = system_clock::now();
|
||||
while (true) {
|
||||
size_t J1 = ChooseUnitIdxToMutate();;
|
||||
SyncCorpus();
|
||||
RereadOutputCorpus();
|
||||
auto Now = system_clock::now();
|
||||
if (duration_cast<seconds>(Now - LastCorpusReload).count()) {
|
||||
RereadOutputCorpus();
|
||||
LastCorpusReload = Now;
|
||||
}
|
||||
if (TotalNumberOfRuns >= Options.MaxNumberOfRuns)
|
||||
break;
|
||||
if (Options.MaxTotalTimeSec > 0 &&
|
||||
|
Loading…
Reference in New Issue
Block a user