diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-10-17 16:54:25 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-10-17 16:54:25 +0000 |
commit | 8cce07d1ddccd9ffcdcaafaaa4cf13ffa95ec360 (patch) | |
tree | 99f8a824655109bd2cd36ab0a8502e2fd713101a /libgo/runtime/malloc.h | |
parent | 31a84d4a65c9e820fa6f928f8a031f6dfe213c85 (diff) | |
download | gcc-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/malloc.h')
-rw-r--r-- | libgo/runtime/malloc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libgo/runtime/malloc.h b/libgo/runtime/malloc.h index e674c88..f37f206 100644 --- a/libgo/runtime/malloc.h +++ b/libgo/runtime/malloc.h @@ -465,7 +465,7 @@ void runtime_MProf_Free(Bucket*, uintptr, bool) __asm__ (GOSYM_PREFIX "runtime.mProf_Free"); void runtime_MProf_GC(void) __asm__ (GOSYM_PREFIX "runtime.mProf_GC"); -void runtime_iterate_memprof(void (*callback)(Bucket*, uintptr, Location*, uintptr, uintptr, uintptr)) +void runtime_iterate_memprof(FuncVal* callback) __asm__ (GOSYM_PREFIX "runtime.iterate_memprof"); int32 runtime_gcprocs(void); void runtime_helpgc(int32 nproc); @@ -535,7 +535,8 @@ void runtime_gc_g_ptr(Eface*); void runtime_gc_itab_ptr(Eface*); void runtime_memorydump(void); -int32 runtime_setgcpercent(int32); +int32 runtime_setgcpercent(int32) + __asm__ (GOSYM_PREFIX "runtime.setgcpercent"); // Value we use to mark dead pointers when GODEBUG=gcdead=1. #define PoisonGC ((uintptr)0xf969696969696969ULL) |