mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
d4861911c2
Earlier the atomicbitops_state_autogen.go was not being built because it had an impossible build condition: `(amd64 || arm64) && !amd64 && !arm64`. This is a known deficiency in go_stateify tool. This was solved via having two identical files like 32b_32bit.go and 32b_64bit.go. Just piggyback this. This changes also enhances `atomicbitops.Bool` in the following ways: - Added RacyLoad(), RacyStore() and CompareAndSwap() for Bool to bring it up to speed with the other types. - Delegated the actual atomic operations work to the underlying Uint32. - Cleaned up code with b32(); similar to what sync/atomic.Bool does. PiperOrigin-RevId: 597607982