3 // Copyright 2021 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // A test for partial liveness / partial spilling / compiler-induced GC failure
20 H(&s[0]) // It's possible that this will make the spill redundant, but there's a bug in spill slot allocation.
34 func GC() { runtime.GC(); runtime.GC() }
39 p := int(uintptr(unsafe.Pointer(&s[2])) + 42) // likely point to unallocated memory
40 poison([3]int{p, p, p})
46 func poison([3]int) {}
50 func escape(s []int) {