- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for liveReturnSlot (1.19 sec)
-
test/fixedbugs/issue19078.go
u += 1<<13 - 1 // add almost a page for i := 0; i < 1000000; i++ { _ = identity(u) // installs u at return slot _ = liveReturnSlot(nil) // incorrectly marks return slot as live } } //go:noinline func liveReturnSlot(x *int) *int { defer func() {}() // causes return slot to be marked live sink = &x // causes x to be moved to the heap, triggering allocation return x }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 13 19:39:15 UTC 2017 - 1.2K bytes - Viewed (0)