1 // Copyright 2014 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.
14 // The test for the gc compiler resets the stack pointer so that the
15 // stack gets modified. We don't have a way to do that for gccgo
16 // without writing more assembly code, which we haven't bothered to
17 // do. So this is not much of a test.
21 func RewindAndSetgid() {
22 atomic.StoreInt32(&Baton, 1)
23 for atomic.LoadInt32(&Baton) != 0 {