diff options
author | Keith Randall <khr@golang.org> | 2014-09-09 14:32:53 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2014-09-09 14:32:53 -0700 |
commit | c6cd0b3047aa3cb22482c12701b31a817df85316 (patch) | |
tree | 81b0aef6eb941160731ba278a9a554adce01ba40 /src/runtime/stubs.go | |
parent | c13a6229b6de5d3edf370d5e9c7f847cd2be05c9 (diff) | |
download | go-c6cd0b3047aa3cb22482c12701b31a817df85316.tar.gz |
runtime: more cleanups
Move timenow thunk into time.s
Move declarations for generic c/asm services into stubs.go
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/137360043
Diffstat (limited to 'src/runtime/stubs.go')
-rw-r--r-- | src/runtime/stubs.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/runtime/stubs.go b/src/runtime/stubs.go index f3af34a58..8bae98c73 100644 --- a/src/runtime/stubs.go +++ b/src/runtime/stubs.go @@ -28,6 +28,7 @@ func getg() *g func acquirem() *m func releasem(mp *m) func gomcache() *mcache +func readgstatus(*g) uint32 // proc.c // mcall switches from the g to the g0 stack and invokes fn(g), // where g is the goroutine that made the call. @@ -122,6 +123,9 @@ func unlockOSThread() var hashLoad = loadFactor // in asm_*.s +func fastrand1() uint32 + +// in asm_*.s //go:noescape func memeq(a, b unsafe.Pointer, size uintptr) bool @@ -229,3 +233,6 @@ func rt0_go() // to deferreturn. // in asm_*.s func return0() + +// thunk to call time.now. +func timenow() (sec int64, nsec int32) |