Skip to content

walkthrough: children skip the race runtime's exit sleep - #82

Merged
twmb merged 1 commit into
masterfrom
walkthrough-parallel
Sep 18, 2026
Merged

twmb merged 1 commit into
masterfrom
walkthrough-parallel

Conversation

@twmb

@twmb twmb commented Sep 18, 2026

Copy link
Copy Markdown
Owner

Every kcl the walkthrough spawns under -race paid the race runtime's one second atexit_sleep_ms before exiting; about two hundred children made the walk 90s of the 3m CI test step. The child environment now sets GORACE=atexit_sleep_ms=0 (a child that ran one command has no race report pending). The walk is 9s under -race, 4s without. Test only, no behavior change.

Under -race the runtime sleeps a second before a process exits so a
last race report can be written (GORACE atexit_sleep_ms, default
1000). Every kcl the walkthrough spawns is such a process, and it
spawns about two hundred, so the walk took 90s of CI's 3m test step.
The child environment sets atexit_sleep_ms=0: the walk now takes 9s
under -race, 4s without.
@twmb
twmb merged commit 3574431 into master Sep 18, 2026
1 check passed
@twmb
twmb deleted the walkthrough-parallel branch September 18, 2026 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant