commit | f5634dff40e53ad9ce61afd67fd07334e3af9d1f | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Tue Apr 18 22:06:07 2017 -0700 |
committer | Ian Lance Taylor <iant@golang.org> | Wed Apr 19 17:40:39 2017 +0000 |
tree | 36a64ec211419b2356f82446b114f6df1bdd1e06 | |
parent | c3db34f4efc2d610f74a01dd2ad7775f48889b29 [diff] |
runtime: move mstart from Go to C The assignments done in mstart must be done without write barriers, as mstart is running without an m or p. In the gc toolchain the equivalent code to intialize g and g->m is written in assembler; on GNU/Linux, it's in the clone function. Change-Id: Id84d2897e2a72a7ff906c763cf4524e956b709e7 Reviewed-on: https://go-review.googlesource.com/40989 Reviewed-by: Than McIntosh <thanm@google.com>