Thanks for the relpy. I have opened an issue on github:
https://github.com/golang/go/issues/61730
On Thursday, 3 August 2023 at 17:49:25 UTC+8 Michael Knyszek wrote:
> That line (the full sentence is "The garbage collector now includes
> non-heap sources of garbage collector work (e.g., stack
That line (the full sentence is "The garbage collector now includes
non-heap sources of garbage collector work (e.g., stack scanning) when
determining how frequently to run.") is unrelated. It only refers to a
change in accounting for what gets included in the GOGC calculation, not a
change in
I notice that Go1.17.7 still allocates the array on heap by calling
newobject while Go1.18 allocates the array on stack. I also notice that in
the release note of Go1.18 that "The garbage collector now includes
non-heap sources of garbage collector work". Does the GC in 1.18 and
following
Yes, that looks very, very wrong. It looks like this issue goes back to at
least 1.16.
If you can open an issue at https://github.com/golang/go/issues we can
investigate.
On Wednesday, August 2, 2023 at 10:03:31 AM UTC-7 Jinbao Chen wrote:
> I use go1.20.5 to compile the following code.
>