Home | History | Annotate | Download | only in runtime
      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.
      4 
      5 package runtime
      6 
      7 func setMaxStack(in int) (out int) {
      8 	out = int(maxstacksize)
      9 	maxstacksize = uintptr(in)
     10 	return out
     11 }
     12 
     13 func setPanicOnFault(new bool) (old bool) {
     14 	mp := acquirem()
     15 	old = mp.curg.paniconfault
     16 	mp.curg.paniconfault = new
     17 	releasem(mp)
     18 	return old
     19 }
     20