]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/ppc64: make assembler almost concurrency-safe
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 11 Apr 2017 13:40:34 +0000 (06:40 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 11 Apr 2017 14:53:08 +0000 (14:53 +0000)
commitf95de5c67939629424441ed8364a6bf89bc9b1ef
treed839f6f3295d92a301021f9e53b447ac5202fff6
parentb5931020b71999db77109088e00b63ede19829c8
cmd/internal/obj/ppc64: make assembler almost concurrency-safe

CL 39922 made the arm assembler concurrency-safe.
This CL does the same, but for ppc64.
The approach is similar: introduce ctxt9 to hold
function-local state and thread it through
the assembler as necessary.

One race remains after this CL, similar to CL 40252.

That race is conceptually unrelated to this refactoring,
and will be addressed in a separate CL.

Passes toolstash-check -all.

Updates #15756

Change-Id: Icc37d9a971bed2184c8e66b1a64f4f2e556dc207
Reviewed-on: https://go-review.googlesource.com/40372
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/internal/obj/ppc64/asm9.go
src/cmd/internal/obj/ppc64/obj9.go