diff options
| author | Russ Cox <rsc@golang.org> | 2014-08-29 13:22:31 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-08-29 13:22:31 -0400 |
| commit | 1d0c89a454093801525f1750b1d54318b59b8a78 (patch) | |
| tree | b1fc7bafb765f1c634ef6906e948656fbdc539f3 /src/pkg/text/template/parse/node.go | |
| parent | 4af796fb6ee041d2c541f902ba2effbf23978d4a (diff) | |
| download | go-1d0c89a454093801525f1750b1d54318b59b8a78.tar.xz | |
runtime: run runtime.init
Run it right before main.init.
There is still some runtime initialization that
happens before runtime.init, and some of that
may call into Go code (for example to acquire locks)
so this timing is not perfect, but I believe it is the
best we can do.
This came up because global variables intialized
to func values are done in the generated init code,
not in the linker.
LGTM=dvyukov
R=dvyukov
CC=golang-codereviews, iant, khr, r
https://golang.org/cl/135210043
Diffstat (limited to 'src/pkg/text/template/parse/node.go')
0 files changed, 0 insertions, 0 deletions
