sync: sync.Mutex.*
escape m *Mutex
argument
#57910
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.
Performance
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes as well as current master (2e792a8).
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I have some type that do lazy initialization of some state, for that I use
sync.Once
, however that force my object to leak and prevents stack allocations where I use this object in a non leaky way:Here is some minimal repro
go build -gcflags="-m" a.go
:What did you expect to see?
What did you see instead?
Depends on #16241 (note that fixing #16241 wont fully fix the problem here but is required).
The text was updated successfully, but these errors were encountered: