cmd/compile: 'relocation target not defined' when building with CL 484859 (since reverted) #59709
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Using tip, plus CL 484859 (since reverted).
Does this issue reproduce with the latest release?
No.
What operating system and processor architecture are you using (
go env
)?linux/amd64
What did you do?
Build this program
What did you expect to see?
Clean build
What did you see instead?
Turns out there is a bug in the original CL relating to generic instantiation.
For CL 484859 I placed the call to
garbageCollectUnreferencedHiddenClosures
here in the body ofInlineDecls
. This works fine if there are no generics, butInlineDecls
also gets called during generic function instantiation here. At that point in the game it is too early to be looking for dead hidden closures, and we wind up marking things dead incorrectly.The text was updated successfully, but these errors were encountered: