1 // Copyright 2013 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.
10 func setMaxStack(in int) (out int) {
11 out = runtime_maxstacksize;
12 runtime_maxstacksize = in;
15 func setGCPercent(in int) (out int) {
16 out = runtime_setgcpercent(in);
19 func setMaxThreads(in int) (out int) {
20 out = runtime_setmaxthreads(in);
23 func SetPanicOnFault(enabled bool) (old bool) {
24 old = runtime_g()->paniconfault;
25 runtime_g()->paniconfault = enabled;