cmd/compile: runtime init
chain behaviour is changed after upgraded to 1.12.1 release
#31175
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
go1.12.1
is the latest release.What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
main.go
b.go
Before i upgraded to
go1.12.1
, in above packageb
'sinit
function, the caller's namefun.Name()
will be different for the case:main.main
(thefun.Name()
will bemain.init
)FuncB
in packageb
, like from some tests i dogo b.FuncB()
(thefun.Name
will be something different, cannot remember)After i upgraded to
go1.12.1
, now in either way i start the project, thefun.Name
is alwaysruntime.goexit
What was actually changed underlying? What potential issues it could cause?
The text was updated successfully, but these errors were encountered: