aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/runtime.h
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/runtime.h
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/runtime.h')
-rw-r--r--libgo/runtime/runtime.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h
index f73d745..dedc574 100644
--- a/libgo/runtime/runtime.h
+++ b/libgo/runtime/runtime.h
@@ -230,7 +230,7 @@ enum {
};
void runtime_hashinit(void);
-void runtime_traceback(void)
+void runtime_traceback(int32)
__asm__ (GOSYM_PREFIX "runtime.traceback");
void runtime_tracebackothers(G*)
__asm__ (GOSYM_PREFIX "runtime.tracebackothers");
@@ -256,7 +256,6 @@ extern int8* runtime_goos;
extern int32 runtime_ncpu;
extern void (*runtime_sysargs)(int32, uint8**);
extern struct debugVars runtime_debug;
-extern uintptr runtime_maxstacksize;
extern bool runtime_isstarted;
extern bool runtime_isarchive;
@@ -411,7 +410,8 @@ void runtime_crash(void);
void runtime_parsedebugvars(void)
__asm__(GOSYM_PREFIX "runtime.parsedebugvars");
void _rt0_go(void);
-int32 runtime_setmaxthreads(int32);
+intgo runtime_setmaxthreads(intgo)
+ __asm__ (GOSYM_PREFIX "runtime.setmaxthreads");
G* runtime_timejump(void);
void runtime_iterate_finq(void (*callback)(FuncVal*, void*, const FuncType*, const PtrType*));