]> Cypherpunks repositories - gostls13.git/commit
runtime: correct various Go -> C function calls
authorRuss Cox <rsc@golang.org>
Thu, 4 Sep 2014 04:54:06 +0000 (00:54 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 4 Sep 2014 04:54:06 +0000 (00:54 -0400)
commite3edfea07f905916cee66121576b029cd6a11444
treea86ddfc5ae7333371708dd0041fb6ac052694309
parent32ecf57d22cfdf3af9419db515eba85fa1d5b67d
runtime: correct various Go -> C function calls

Some things get converted.
Other things (too complex or too many C deps) get onM calls.
Other things (too simple) get #pragma textflag NOSPLIT.

After this CL, the offending function list is basically:
        - panic.c
        - netpoll.goc
        - mem*.c
        - race stuff
        - readgstatus
        - entersyscall/exitsyscall

LGTM=r, iant
R=golang-codereviews, r, iant
CC=dvyukov, golang-codereviews, khr
https://golang.org/cl/140930043
21 files changed:
src/pkg/runtime/cpuprof.go
src/pkg/runtime/debug.go
src/pkg/runtime/malloc.c
src/pkg/runtime/malloc.go
src/pkg/runtime/malloc.h
src/pkg/runtime/mcache.c
src/pkg/runtime/mheap.c
src/pkg/runtime/mprof.go
src/pkg/runtime/os_darwin.c
src/pkg/runtime/os_nacl.c
src/pkg/runtime/os_nacl.go
src/pkg/runtime/os_windows.c
src/pkg/runtime/os_windows.go
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.c
src/pkg/runtime/runtime.go [new file with mode: 0644]
src/pkg/runtime/signal_unix.c
src/pkg/runtime/signal_unix.go [new file with mode: 0644]
src/pkg/runtime/stack_test.go
src/pkg/runtime/stubs.go
src/pkg/runtime/thunk.s