aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Fuzz.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-09-19 09:27:25 -0700
committerGitHub <noreply@github.com>2025-09-19 09:27:25 -0700
commit164c598cd85092323ef16640fd533d325fa74944 (patch)
tree6528a4954dd35a49af4895b532f84321c6885388 /lib/std/Build/Fuzz.zig
parentbc921fec122f4fa9e9a3957657c6ee74d6870f5b (diff)
parent7c6ccca46d31a69cd6fddfdacd0aa7fba1d1e922 (diff)
downloadzig-164c598cd85092323ef16640fd533d325fa74944.tar.gz
zig-164c598cd85092323ef16640fd533d325fa74944.zip
Merge pull request #23416 from gooncreeper/improved-fuzzer
greatly improve capabilities of the fuzzer
Diffstat (limited to 'lib/std/Build/Fuzz.zig')
-rw-r--r--lib/std/Build/Fuzz.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/std/Build/Fuzz.zig b/lib/std/Build/Fuzz.zig
index bf7e9580bc..6bea7654b2 100644
--- a/lib/std/Build/Fuzz.zig
+++ b/lib/std/Build/Fuzz.zig
@@ -252,9 +252,8 @@ pub fn sendUpdate(
const seen_pcs = cov_header.seenBits();
const n_runs = @atomicLoad(usize, &cov_header.n_runs, .monotonic);
const unique_runs = @atomicLoad(usize, &cov_header.unique_runs, .monotonic);
- if (prev.unique_runs != unique_runs) {
- // There has been an update.
- if (prev.unique_runs == 0) {
+ {
+ if (unique_runs != 0 and prev.unique_runs == 0) {
// We need to send initial context.
const header: abi.SourceIndexHeader = .{
.directories_len = @intCast(coverage_map.coverage.directories.entries.len),