X7ROOT File Manager
Current Path:
/opt/golang/1.19.4/src/cmd/compile/internal/ssa/testdata
opt
/
golang
/
1.19.4
/
src
/
cmd
/
compile
/
internal
/
ssa
/
testdata
/
📁
..
📄
convertline.go
(151 B)
📄
hist.dlv-dbg.nexts
(3.81 KB)
📄
hist.dlv-opt.nexts
(3.74 KB)
📄
hist.gdb-dbg.nexts
(4.03 KB)
📄
hist.gdb-opt.nexts
(4.45 KB)
📄
hist.go
(2.4 KB)
📄
i22558.dlv-dbg.nexts
(251 B)
📄
i22558.gdb-dbg.nexts
(278 B)
📄
i22558.go
(773 B)
📄
i22600.dlv-dbg-race.nexts
(122 B)
📄
i22600.gdb-dbg-race.nexts
(149 B)
📄
i22600.go
(358 B)
📄
infloop.dlv-opt.nexts
(179 B)
📄
infloop.gdb-opt.nexts
(98 B)
📄
infloop.go
(177 B)
📄
inline-dump.go
(178 B)
📄
pushback.go
(360 B)
📄
sayhi.go
(137 B)
📄
scopes.dlv-dbg.nexts
(1.27 KB)
📄
scopes.dlv-opt.nexts
(1.11 KB)
📄
scopes.gdb-dbg.nexts
(1.27 KB)
📄
scopes.gdb-opt.nexts
(1.11 KB)
📄
scopes.go
(1.45 KB)
Editing: i22558.go
package main import ( "fmt" "os" ) type big struct { pile [768]int8 } type thing struct { name string next *thing self *thing stuff []big } func test(t *thing, u *thing) { if t.next != nil { return } fmt.Fprintf(os.Stderr, "%s\n", t.name) u.self = u t.self = t t.next = u for _, p := range t.stuff { if isFoo(t, p) { return } } } //go:noinline func isFoo(t *thing, b big) bool { return true } func main() { growstack() // Use stack early to prevent growth during test, which confuses gdb t := &thing{name: "t", self: nil, next: nil, stuff: make([]big, 1)} u := thing{name: "u", self: t, next: t, stuff: make([]big, 1)} test(t, &u) } var snk string //go:noinline func growstack() { snk = fmt.Sprintf("%#v,%#v,%#v", 1, true, "cat") }
Upload File
Create Folder