]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: eagerly initialize x86 assembler
authorJosh Bleecher Snyder <josharian@gmail.com>
Sat, 25 Mar 2017 14:22:53 +0000 (07:22 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sat, 25 Mar 2017 23:20:25 +0000 (23:20 +0000)
commit3b251e603d09739d466ff2f44c5a362e1ba5c0b1
tree9527099f6fe9979acb4bc0152f0019cb2b7e6141
parente76d6a456b734bd02f275303571c38bec295a6b5
cmd/internal/obj: eagerly initialize x86 assembler

Prior to this CL, instinit was called as needed.
This does not work well in a concurrent backend.
Initialization is very cheap; do it on startup instead.

Passes toolstash-check -all.
No compiler performance impact.

Updates #15756

Change-Id: Ifa5e82e8abf4504435e1b28766f5703a0555f42d
Reviewed-on: https://go-review.googlesource.com/38662
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/asm/internal/arch/arch.go
src/cmd/compile/internal/amd64/galign.go
src/cmd/compile/internal/x86/galign.go
src/cmd/internal/obj/x86/asm6.go