• Russ Cox's avatar
    runtime: pass setmg function to cgo_init · 6a70f9d0
    Russ Cox authored
    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
    6a70f9d0
gcc_linux_amd64.c 1.44 KB