3 // Copyright 2019 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.
15 func f(t *int, p *int) []T {
25 useStack(100) // force a stack copy
26 // We're expecting a panic.
27 // The bug in this issue causes a throw, which this recover() will not squash.
30 junk() // fill the stack with invalid pointers
34 func useStack(n int) {
43 var a [128]uintptr // 1k of bad pointers on the stack