diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-10-17 16:54:25 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-10-17 16:54:25 +0000 |
commit | 5fd1e54195e3f287e6c199656de1eaa481f015f0 (patch) | |
tree | 99f8a824655109bd2cd36ab0a8502e2fd713101a /libgo/runtime/runtime.h | |
parent | c258c00465c6188b1df0518a241b2c7f84d572f1 (diff) | |
download | gcc-5fd1e54195e3f287e6c199656de1eaa481f015f0.tar.gz |
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
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241261 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime/runtime.h')
-rw-r--r-- | libgo/runtime/runtime.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index f73d7450441..dedc57452f9 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*)); |