cmd/compile: implement global new(T) without calling newobject #29691
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.
Performance
Milestone
This generates init code to call
newobject
(including a write barrier, which I thought wasn't supposed to happen any more?). Instead, we should make a BSS int symbol, and then makex
contain a relocation to that symbol.cc @randall77 @mvdan
The text was updated successfully, but these errors were encountered: