Descriptionruntime: 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.
Patch Set 1 #Patch Set 2 : diff -r b3cfb8be2faf https://code.google.com/p/go/ #Patch Set 3 : diff -r b3cfb8be2faf https://code.google.com/p/go/ #Patch Set 4 : diff -r bcc0898b0026 https://code.google.com/p/go/ #
MessagesTotal messages: 3
|