From 8cce07d1ddccd9ffcdcaafaaa4cf13ffa95ec360 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 17 Oct 2016 16:54:25 +0000 Subject: 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 --- libgo/runtime/proc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libgo/runtime/proc.c') 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; -- cgit v1.1