runtime: GODEBUG=memprofilerate=1 does not take effect. #55100
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
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?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go build main.go
GODEBUG=memprofilerate=1 ./main
What did you expect to see?
Expect output,ignore the second value which may be change every time:
1 0x10029a650
What did you see instead?
524288 0x10029a650
more
I also test this on linux-amd64 and it does not work either.
I also test this with different go version. go1.17 and go1.18 and go1.19 all failed. go1.16 works as expect.
The text was updated successfully, but these errors were encountered: