]> Cypherpunks repositories - gostls13.git/commit
runtime: pass setmg function to cgo_init
authorRuss Cox <rsc@golang.org>
Mon, 25 Mar 2013 22:14:02 +0000 (18:14 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 25 Mar 2013 22:14:02 +0000 (18:14 -0400)
commit6a70f9d07339729639520f4ed8faef8965e6e26e
tree21d16dc74e38e0d69d5bf6e94007337349287717
parentcb807e7b4a3c6291f16507ee9a31a303f411ddba
runtime: pass setmg function to cgo_init

This keeps the logic about how to set the thread-local variables
m and g in code compiled and linked by the gc toolchain,
an important property for upcoming cgo changes.

It's also just a nice cleanup: one less place to update when
these details change.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7560048
src/pkg/runtime/asm_386.s
src/pkg/runtime/asm_amd64.s
src/pkg/runtime/cgo/gcc_freebsd_386.c
src/pkg/runtime/cgo/gcc_freebsd_amd64.c
src/pkg/runtime/cgo/gcc_linux_386.c
src/pkg/runtime/cgo/gcc_linux_amd64.c
src/pkg/runtime/cgo/gcc_netbsd_386.c
src/pkg/runtime/cgo/gcc_netbsd_amd64.c
src/pkg/runtime/cgo/gcc_openbsd_386.c
src/pkg/runtime/cgo/gcc_openbsd_amd64.c