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
it's working as intended. gclocals are content addressable symbols
so the linker will deduplicate them. As the compiler is compiling one
function at a time, or it currently doesn't know that a matching gclocals
symbol has already been emitted.
Perhaps the compiler should check if a matching gclocals has already
been emitted before emitting a new one.
Yes the linker will deduplicate but this should be done by the compiler ahead of time.
It would reduce the object file size and make the linker faster. Possibly also reducing the compiler memory usage.
minux
changed the title
gclocals have duplicate symbols in the object file
cmd/compile: dedup gclocals at compile time
Mar 27, 2016
Version:
go version devel +4ffa5eb Sun Mar 27 05:31:54 2016 +0000 linux/amd64
Env:
The symbol duplication factor is ~3.5x.
The text was updated successfully, but these errors were encountered: