PR target/61794
[official-gcc.git] / libgo / runtime / rdebug.goc
blob230e8fa9e9e636eaa3c9f5b6ebaadc203b9314e2
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);