From 44d22e75dd9a0cbffbb04c9ce6d6bf9030634cc1 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Sun, 9 Oct 2022 19:06:23 -0700 Subject: 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 TryBot-Result: Gopher Robot Reviewed-by: Cherry Mui Run-TryBot: Keith Randall --- src/cmd/compile/internal/ssa/func.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/cmd/compile/internal/ssa/func.go') diff --git a/src/cmd/compile/internal/ssa/func.go b/src/cmd/compile/internal/ssa/func.go index b10911aa92..ba3d1e589e 100644 --- a/src/cmd/compile/internal/ssa/func.go +++ b/src/cmd/compile/internal/ssa/func.go @@ -64,12 +64,6 @@ type Func struct { // AuxCall describing parameters and results for this function. OwnAux *AuxCall - // WBLoads is a list of Blocks that branch on the write - // barrier flag. Safe-points are disabled from the OpLoad that - // reads the write-barrier flag until the control flow rejoins - // below the two successors of this block. - WBLoads []*Block - freeValues *Value // free Values linked by argstorage[0]. All other fields except ID are 0/nil. freeBlocks *Block // free Blocks linked by succstorage[0].b. All other fields except ID are 0/nil. -- cgit v1.3