]> Cypherpunks repositories - gostls13.git/commit
runtime: split minit() to mpreinit() and minit()
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 21 Feb 2013 12:24:38 +0000 (16:24 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 21 Feb 2013 12:24:38 +0000 (16:24 +0400)
commita0955a2aa2a2fcd5352f7e517c3f965e24fd8584
tree93c191c5b27a0367b42fdc86b9a7a3c414e18599
parentc53fab969c31e3f15306a5b5b714928d2fd6b1df
runtime: split minit() to mpreinit() and minit()
mpreinit() is called on the parent thread and with mcache (can allocate memory),
minit() is called on the child thread and can not allocate memory.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7389043
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h
src/pkg/runtime/thread_darwin.c
src/pkg/runtime/thread_freebsd.c
src/pkg/runtime/thread_linux.c
src/pkg/runtime/thread_netbsd.c
src/pkg/runtime/thread_openbsd.c
src/pkg/runtime/thread_plan9.c
src/pkg/runtime/thread_windows.c