]> Cypherpunks repositories - gostls13.git/commit
runtime: make more functions safe for Go
authorRuss Cox <rsc@golang.org>
Thu, 4 Sep 2014 19:53:45 +0000 (15:53 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 4 Sep 2014 19:53:45 +0000 (15:53 -0400)
commitf545b05aaec2d13e664ce48ce2c258bcfce307c4
treeb3765343ac5e3089a6bca40974cb6d46d78da013
parentc08d8834ddf8d69daba989a4ee0b5e144fce973d
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
19 files changed:
src/pkg/runtime/cgocall.go
src/pkg/runtime/os_darwin.c
src/pkg/runtime/os_dragonfly.c
src/pkg/runtime/os_freebsd.c
src/pkg/runtime/os_linux.c
src/pkg/runtime/os_nacl.c
src/pkg/runtime/os_netbsd.c
src/pkg/runtime/os_openbsd.c
src/pkg/runtime/os_plan9.c
src/pkg/runtime/os_solaris.c
src/pkg/runtime/os_windows.c
src/pkg/runtime/proc.c
src/pkg/runtime/race.c
src/pkg/runtime/race.go
src/pkg/runtime/race0.c [deleted file]
src/pkg/runtime/race0.go
src/pkg/runtime/slice.go
src/pkg/runtime/string.go
src/pkg/runtime/stubs.go