Skip to content

threading: don't touch WaitGroup after publishing count==0 in finish() - #34458

Merged
Jarred-Sumner merged 4 commits into
mainfrom
farm/ab26b896/waitgroup-finish-uaf
Jul 17, 2026
Merged

Jarred-Sumner merged 4 commits into
mainfrom
farm/ab26b896/waitgroup-finish-uaf

[autofix.ci] apply automated fixes

a9841a5
Select commit
Loading
Failed to load commit list.
Claude / Claude Code Review completed Jul 17, 2026 in 17m 55s

Code review found 1 potential issue

Found 4 candidates, confirmed 1. See review comments for details.

Details

Severity Count
🔴 Important 0
🟡 Nit 1
🟣 Pre-existing 0
Severity File:Line Issue
🟡 Nit test/bundler/bun-build-sourcemap-link-error-uaf.test.ts:78 Explicit 60_000ms test timeout violates test/CLAUDE.md

Annotations

Check warning on line 78 in test/bundler/bun-build-sourcemap-link-error-uaf.test.ts

See this annotation in the file changed.

@claude claude / Claude Code Review

Explicit 60_000ms test timeout violates test/CLAUDE.md

nit: `test/CLAUDE.md` says "**CRITICAL**: Do not set a timeout on tests. Bun already has timeouts", and REVIEW.md's guidance is to shrink the workload rather than raise the per-test timeout. If 300 ASAN iterations fit under the harness default you can drop the `60_000`; if they don't, consider trimming `N_ITER` instead. Acknowledged that neighboring bundler tests (e.g. `bun-build-api.test.ts`) do the same and that the iteration count here is load-bearing, so not blocking.