]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile,runtime: dedup writeBarrier needed
authorMauri de Souza Meneguzzo <mauri870@gmail.com>
Sat, 4 Nov 2023 23:05:05 +0000 (23:05 +0000)
committerKeith Randall <khr@golang.org>
Tue, 7 Nov 2023 17:21:04 +0000 (17:21 +0000)
commit72da49caee3319dcdc5f03a8f70352eb4b725a64
treea057cbca29f9b991dae7558520f2b3a1086501bf
parent43a27a7e8cbde4270e3f2b4e6e1538b28882c2d0
cmd/compile,runtime: dedup writeBarrier needed

The writeBarrier "needed" struct member has the exact same
value as "enabled", and used interchangeably.

I'm not sure if we plan to make a distinction between the
two at some point, but today they are effectively the same,
so dedup it and keep only "enabled".

Change-Id: I65e596f174e1e820dc471a45ff70c0ef4efbc386
GitHub-Last-Rev: f8c805a91606d42c8d5b178ddd7d0bec7aaf9f55
GitHub-Pull-Request: golang/go#63814
Reviewed-on: https://go-review.googlesource.com/c/go/+/538495
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Mauri de Souza Meneguzzo <mauri870@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/typecheck/_builtin/runtime.go
src/cmd/compile/internal/typecheck/builtin.go
src/runtime/mbarrier.go
src/runtime/mbitmap.go
src/runtime/mgc.go
src/runtime/mgcmark.go