]> Cypherpunks repositories - gostls13.git/commit
runtime: start all threads with runtime.mstart
authorRuss Cox <rsc@golang.org>
Fri, 1 Mar 2013 16:44:43 +0000 (11:44 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 1 Mar 2013 16:44:43 +0000 (11:44 -0500)
commite6a3e22c7569f7581f9a3dea3229ff6d0eda15e8
treeb1de33adeeb1f1bb77d033b608d6ce14f89e6bc8
parentd0d7416d3f9065141e1abe85528803afa9217371
runtime: start all threads with runtime.mstart

Putting the M initialization in multiple places will not scale.
Various code assumes mstart is the start already. Make it so.

R=golang-dev, devon.odell
CC=golang-dev
https://golang.org/cl/7420048
14 files changed:
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h
src/pkg/runtime/sys_freebsd_386.s
src/pkg/runtime/sys_freebsd_amd64.s
src/pkg/runtime/sys_freebsd_arm.s
src/pkg/runtime/sys_windows_386.s
src/pkg/runtime/sys_windows_amd64.s
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