diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-07-12 00:01:09 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-07-12 00:01:09 +0000 |
commit | 2fa39ad859e59a5ad5796e522a4842717b2f6e0c (patch) | |
tree | 783acf11ed4625d6499f731501d984f25fa103fc /libgo/runtime/proc.c | |
parent | ca76ae5c35f58f0ea40f656d3e555f2c740cf4ec (diff) | |
download | gcc-2fa39ad859e59a5ad5796e522a4842717b2f6e0c.zip gcc-2fa39ad859e59a5ad5796e522a4842717b2f6e0c.tar.gz gcc-2fa39ad859e59a5ad5796e522a4842717b2f6e0c.tar.bz2 |
runtime: Merge master revision 19185.
This revision renames several files in the runtime directory
from .c to .goc.
From-SVN: r212472
Diffstat (limited to 'libgo/runtime/proc.c')
-rw-r--r-- | libgo/runtime/proc.c | 56 |
1 files changed, 3 insertions, 53 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c index d213084..8e32f78a2 100644 --- a/libgo/runtime/proc.c +++ b/libgo/runtime/proc.c @@ -2456,26 +2456,6 @@ runtime_lockedOSThread(void) return g->lockedm != nil && m->lockedg != nil; } -// for testing of callbacks - -_Bool runtime_golockedOSThread(void) - __asm__ (GOSYM_PREFIX "runtime.golockedOSThread"); - -_Bool -runtime_golockedOSThread(void) -{ - return runtime_lockedOSThread(); -} - -intgo runtime_NumGoroutine (void) - __asm__ (GOSYM_PREFIX "runtime.NumGoroutine"); - -intgo -runtime_NumGoroutine() -{ - return runtime_gcount(); -} - int32 runtime_gcount(void) { @@ -3321,13 +3301,10 @@ runtime_testSchedLocalQueueSteal(void) } } -intgo runtime_debug_setMaxThreads(intgo) - __asm__(GOSYM_PREFIX "runtime_debug.setMaxThreads"); - -intgo -runtime_debug_setMaxThreads(intgo in) +int32 +runtime_setmaxthreads(int32 in) { - intgo out; + int32 out; runtime_lock(&runtime_sched); out = runtime_sched.maxmcount; @@ -3370,30 +3347,3 @@ runtime_gcwaiting(void) { return runtime_sched.gcwaiting; } - -// func runtime_procPin() int - -intgo sync_runtime_procPin(void) - __asm__(GOSYM_PREFIX "sync.runtime_procPin"); - -intgo -sync_runtime_procPin() -{ - M *mp; - - mp = m; - // Disable preemption. - mp->locks++; - return mp->p->id; -} - -// func runtime_procUnpin() - -void sync_runtime_procUnpin(void) - __asm__ (GOSYM_PREFIX "sync.runtime_procUnpin"); - -void -sync_runtime_procUnpin(void) -{ - m->locks--; -} |