-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Milestone
Description
What version of Go are you using (go version)?
$ go version go version devel go1.19-7d48c32412 Wed Apr 13 21:11:38 2022 +0800 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
What did you do?
package main
import (
"os"
"runtime"
"runtime/trace"
)
var global interface{}
func init() {
global = make([]interface{}, 100000000)
}
var global2 []interface{}
func main() {
runtime.GC()
var f, _ = os.Create("trace1.out")
trace.Start(f)
for i := 0; i < 10000; i++ {
global2 = append(global2, make([]int, 100))
}
trace.Stop()
global2 = nil
var f2, _ = os.Create("trace2.out")
trace.Start(f2)
runtime.GC()
for i := 0; i < 10000; i++ {
global2 = append(global2, make([]int, 100))
}
trace.Stop()
global2 = nil
}
// go tool trace -http=127.0.0.1:8082 ./trace1.out
// go tool trace -http=127.0.0.1:8083 ./trace2.out
What did you expect to see?
What did you see instead?
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.



