diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-06 17:57:23 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-06 17:57:23 +0000 |
commit | 220a902afa4e096172926d498e1efac23e80deb7 (patch) | |
tree | 4ce83ca433796a728e9fdd00af105bce158532b5 /libgo/runtime/runtime.h | |
parent | 506056fd6ecd06499e2ee7f6e37dbd5fbf7f4de6 (diff) | |
download | gcc-220a902afa4e096172926d498e1efac23e80deb7.tar.gz |
libgo: Update to weekly.2012-03-04 release.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185010 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime/runtime.h')
-rw-r--r-- | libgo/runtime/runtime.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index 113bb7163c5..40c59a82777 100644 --- a/libgo/runtime/runtime.h +++ b/libgo/runtime/runtime.h @@ -427,6 +427,8 @@ void runtime_osyield(void); void runtime_LockOSThread(void) __asm__("libgo_runtime.runtime.LockOSThread"); void runtime_UnlockOSThread(void) __asm__("libgo_runtime.runtime.UnlockOSThread"); +uintptr runtime_memlimit(void); + // If appropriate, ask the operating system to control whether this // thread should receive profiling signals. This is only necessary on OS X. // An operating system should not deliver a profiling signal to a @@ -441,3 +443,16 @@ void runtime_time_scan(void (*)(byte*, int64)); void runtime_setsig(int32, bool, bool); #define runtime_setitimer setitimer + +void runtime_check(void); + +// A list of global variables that the garbage collector must scan. +struct root_list { + struct root_list *next; + struct root { + void *decl; + size_t size; + } roots[]; +}; + +void __go_register_gc_roots(struct root_list*); |