commit | 6a70f9d07339729639520f4ed8faef8965e6e26e | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Mon Mar 25 18:14:02 2013 -0400 |
committer | Russ Cox <rsc@golang.org> | Mon Mar 25 18:14:02 2013 -0400 |
tree | 21d16dc74e38e0d69d5bf6e94007337349287717 | |
parent | cb807e7b4a3c6291f16507ee9a31a303f411ddba [diff] |
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