]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: detect write barrier completion differently
authorKeith Randall <khr@golang.org>
Mon, 10 Oct 2022 02:06:23 +0000 (19:06 -0700)
committerKeith Randall <khr@golang.org>
Thu, 16 Feb 2023 00:16:13 +0000 (00:16 +0000)
commit44d22e75dd9a0cbffbb04c9ce6d6bf9030634cc1
tree125e8b26022e3004e987febed3658d085bf34d9f
parent6b5b7b3240ed635f58d25d292a345450c0937979
cmd/compile: detect write barrier completion differently

Instead of keeping track of in which blocks write barriers complete,
introduce a new op that marks the exact memory state where the
write barrier completes.

For future use. This allows us to move some of the write barrier code
to between the start of the merging block and the WBend marker.

Change-Id: If3809b260292667d91bf0ee18d7b4d0eb1e929f0
Reviewed-on: https://go-review.googlesource.com/c/go/+/447777
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
src/cmd/compile/internal/liveness/plive.go
src/cmd/compile/internal/ssa/_gen/genericOps.go
src/cmd/compile/internal/ssa/deadcode.go
src/cmd/compile/internal/ssa/func.go
src/cmd/compile/internal/ssa/lower.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/writebarrier.go
src/cmd/compile/internal/ssagen/ssa.go