aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/proc.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2016-10-17 16:54:25 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2016-10-17 16:54:25 +0000
commit8cce07d1ddccd9ffcdcaafaaa4cf13ffa95ec360 (patch)
tree99f8a824655109bd2cd36ab0a8502e2fd713101a /libgo/runtime/proc.c
parent31a84d4a65c9e820fa6f928f8a031f6dfe213c85 (diff)
downloadgcc-8cce07d1ddccd9ffcdcaafaaa4cf13ffa95ec360.zip
gcc-8cce07d1ddccd9ffcdcaafaaa4cf13ffa95ec360.tar.gz
gcc-8cce07d1ddccd9ffcdcaafaaa4cf13ffa95ec360.tar.bz2
runtime: copy rdebug code from Go 1.7 runtime
While we're at it, update the runtime/debug package, and start running its testsuite by default. I'm not sure why runtime/debug was not previously updated to 1.7. Doing that led me to fix some minor aspects of runtime.Stack and the C function runtime/debug.readGCStats. Reviewed-on: https://go-review.googlesource.com/31251 From-SVN: r241261
Diffstat (limited to 'libgo/runtime/proc.c')
-rw-r--r--libgo/runtime/proc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c
index 7d65c4b..9838c7f 100644
--- a/libgo/runtime/proc.c
+++ b/libgo/runtime/proc.c
@@ -3470,14 +3470,14 @@ runtime_testSchedLocalQueueSteal(void)
}
}
-int32
-runtime_setmaxthreads(int32 in)
+intgo
+runtime_setmaxthreads(intgo in)
{
- int32 out;
+ intgo out;
runtime_lock(&runtime_sched);
- out = runtime_sched.maxmcount;
- runtime_sched.maxmcount = in;
+ out = (intgo)runtime_sched.maxmcount;
+ runtime_sched.maxmcount = (int32)in;
checkmcount();
runtime_unlock(&runtime_sched);
return out;