]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/mips: make assembler almost concurrency-safe
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 10 Apr 2017 21:15:57 +0000 (14:15 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 11 Apr 2017 14:31:16 +0000 (14:31 +0000)
commitc4135d61bbf5b1b0f8bd88cf5f9dc6d3a13f8830
tree9c1d504ee3d08660fe7882431fc825b8dde8ec87
parent69261ecad6dd2f3efd5e4a249325ea27311526b6
cmd/internal/obj/mips: make assembler almost concurrency-safe

CL 39922 made the arm assembler concurrency-safe.
This CL does the same, but for mips.
The approach is similar: introduce ctxt0 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: I2c54a889aa448a4476c9a75da4dd94ef69657b16
Reviewed-on: https://go-review.googlesource.com/40370
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/internal/obj/mips/asm0.go
src/cmd/internal/obj/mips/obj0.go