[go-nuts] Re: Maybe a Bug? The Go compiler stores a stack pointer into a global object

2023-08-03 Thread Jinbao Chen
garbage collector work". Does the GC in 1.18 and >> following versions of Go ignore some global memory area when marking? >> >> On Thursday, August 3, 2023 at 1:03:31 AM UTC+8 Jinbao Chen wrote: >> >>> I use go1.20.5 to compile the following code. >

[go-nuts] Maybe a Bug? The Go compiler stores a stack pointer into a global object

2023-08-02 Thread Jinbao Chen
I use go1.20.5 to compile the following code. package main func use(...interface{}) { } func main() { testCases := [...][][]int{ {{42}}, {{1, 2}}, {{3, 4, 5}}, {{}}, {{1, 2}, {3, 4, 5}, {}, {7}}, } for _, testCase := range testCases {