You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/compile: seemingly non-deterministic object files on tip #82043
This non-determinism in the compiler seemed to bisect to 15bcf54:
first BAD: 15bcf54708 | 2026-09-25 | cmd/compile, cmd/link: deduplicate alg and noalg type descriptors
GOOD parent: dd60ba7ac2 | 2026-09-25 | simd: validation of test cleanup approach
Maybe it is a race on which type is added first, or something along those lines?
Activity
gabyhelp commentedon Oct 6, 2026
Related Issues
Related Code Changes
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
thepudds commentedon Oct 6, 2026
This non-determinism in the compiler seemed to bisect to 15bcf54:
Maybe it is a race on which type is added first, or something along those lines?
CC @cuonglm @golang/compiler
thepudds commentedon Oct 7, 2026
Also, in basic testing, did not seem to reproduce with
-gcflags=-c=1but did reproduce with higher compiler concurrency.cuonglm commentedon Oct 7, 2026
@thepudds Thanks for bisecting.
I think the issue is that
typesStrCmpcould not distinguish between alg and noalg anymore, causing the sorting becomes unstable.CL is coming!
gopherbot commentedon Oct 7, 2026
Change https://go.dev/cl/846185 mentions this issue:
cmd/compile: sort alg type before its noalg onecmd/compile: sort alg type before its noalg one