Rebase.
[official-gcc.git] / libgo / runtime / rdebug.goc
blob63eb4dd4572ec327a43c8b3e28bd394f023396b0
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.
5 package runtime_debug
6 #include "runtime.h"
7 #include "arch.h"
8 #include "malloc.h"
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;