cmd/link: unused runtime-internal exported methods aren't getting deadcoded #70670
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
For example,
internal/abi.(*SwissMapType).NeedKeyUpdate
. It has a 3-instruction body and gets inlined everywhere. There is no reference to it from any code. But it still exists in the binary.Probably this is because it is exported (starts with a capital letter), and the type
*SwissMapType
is reachable somehow.Kind of anecdotal at the moment, but this may be the cause of part of the binary size increase since 1.23.
@cherrymui
A few other examples:
The text was updated successfully, but these errors were encountered: