diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-01-10 21:09:00 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-01-10 21:09:00 +0000 |
commit | 6fcb740ac456e4703b337584b26305a77a5c5038 (patch) | |
tree | 74b83d3a2724b1e617c8716e2cfad76fddcc6bd8 /libgo/runtime/runtime.h | |
parent | c16880eff008084f55a56a07cb7a16453d2b94c4 (diff) | |
download | gcc-6fcb740ac456e4703b337584b26305a77a5c5038.zip gcc-6fcb740ac456e4703b337584b26305a77a5c5038.tar.gz gcc-6fcb740ac456e4703b337584b26305a77a5c5038.tar.bz2 |
runtime: copy more scheduler code from Go 1.7 runtime
I looked at a diff of proc.go between Go 1.7 and gccgo, and copied
over all the easy stuff.
Reviewed-on: https://go-review.googlesource.com/35090
From-SVN: r244291
Diffstat (limited to 'libgo/runtime/runtime.h')
-rw-r--r-- | libgo/runtime/runtime.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index 4383498..57d2b96 100644 --- a/libgo/runtime/runtime.h +++ b/libgo/runtime/runtime.h @@ -237,7 +237,8 @@ extern G* runtime_getallg(intgo) extern uintptr runtime_getallglen(void) __asm__(GOSYM_PREFIX "runtime.getallglen"); extern G* runtime_lastg; -extern M* runtime_allm; +extern M* runtime_getallm(void) + __asm__(GOSYM_PREFIX "runtime.getallm"); extern P** runtime_allp; extern Sched* runtime_sched; extern uint32 runtime_panicking(void) @@ -301,7 +302,6 @@ int32 runtime_atoi(const byte*, intgo); void* runtime_mstart(void*); G* runtime_malg(bool, bool, byte**, uintptr*) __asm__(GOSYM_PREFIX "runtime.malg"); -void runtime_mpreinit(M*); void runtime_minit(void) __asm__ (GOSYM_PREFIX "runtime.minit"); void runtime_signalstack(byte*, uintptr) @@ -313,8 +313,6 @@ void runtime_freemcache(MCache*) void runtime_mallocinit(void); void runtime_mprofinit(void); #define runtime_getcallersp(p) __builtin_frame_address(0) -int32 runtime_mcount(void) - __asm__ (GOSYM_PREFIX "runtime.mcount"); void runtime_mcall(void(*)(G*)); uint32 runtime_fastrand1(void) __asm__ (GOSYM_PREFIX "runtime.fastrand1"); int32 runtime_timediv(int64, int32, int32*) @@ -394,8 +392,6 @@ void runtime_crash(void) void runtime_parsedebugvars(void) __asm__(GOSYM_PREFIX "runtime.parsedebugvars"); void _rt0_go(void); -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*)); @@ -522,8 +518,6 @@ void runtime_lockOSThread(void) __asm__(GOSYM_PREFIX "runtime.lockOSThread"); void runtime_unlockOSThread(void) __asm__(GOSYM_PREFIX "runtime.unlockOSThread"); -bool runtime_lockedOSThread(void) - __asm__(GOSYM_PREFIX "runtime.lockedOSThread"); void runtime_printcreatedby(G*) __asm__(GOSYM_PREFIX "runtime.printcreatedby"); |