runtime: make more functions safe for Go

Convert no-op race functions.
Everything else is tiny and gets NOSPLITs.

After this, all that is left on darwin is sysAlloc, panic, and gothrow (all pending).
There may be system-specific calls in other builds.

LGTM=iant
R=golang-codereviews, iant
CC=dvyukov, golang-codereviews, khr, r
https://golang.org/cl/140240044
This commit is contained in:
Russ Cox 2014-09-04 15:53:45 -04:00
parent c08d8834dd
commit f545b05aae
19 changed files with 274 additions and 220 deletions

View file

@ -164,6 +164,7 @@ runtime·osinit(void)
runtime·ncpu = getncpu();
}
#pragma textflag NOSPLIT
void
runtime·get_random_data(byte **rnd, int32 *rnd_len)
{