1 // Copyright 2015 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
15 // RunGoroutines starts some goroutines that don't do anything.
16 // The idea is to get some threads going, so that a signal will be delivered
17 // to a thread started by Go.
19 //export RunGoroutines
20 func RunGoroutines() {
21 for i := 0; i < 4; i++ {
23 runtime.LockOSThread()
31 // TestSEGV makes sure that an invalid address turns into a run-time Go panic.
37 fmt.Fprintln(os.Stderr, "no panic from segv")
42 fmt.Fprintln(os.Stderr, "continued after segv")