]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/s390x: make assembler almost concurrency-safe
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 11 Apr 2017 13:06:34 +0000 (06:06 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 11 Apr 2017 15:02:28 +0000 (15:02 +0000)
commit1e6924541802e4a10d8dc8a519b7c116ae213a0c
tree527481b8c99af6a9e41e84e6f83185fc9310b591
parentf95de5c67939629424441ed8364a6bf89bc9b1ef
cmd/internal/obj/s390x: make assembler almost concurrency-safe

CL 39922 made the arm assembler concurrency-safe.
This CL does the same, but for s390x.
The approach is similar: introduce ctxtz 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: Iabf17aa242b70c0b078c2e85dae3d93a5e512372
Reviewed-on: https://go-review.googlesource.com/40371
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Munday <munday@ca.ibm.com>
src/cmd/internal/obj/link.go
src/cmd/internal/obj/s390x/asmz.go
src/cmd/internal/obj/s390x/objz.go