mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-29 09:32:38 +00:00
1d4293e052
When a message (within an extension) is lazily decoded, its size cache is initialized to 0 (the zero value for an int32). This doesn’t mean the size cache reads 0, but rather that it was not initialized. This fixes TestExtensionGetRace being flaky since CL 580015. related to golang/protobuf#1609 Change-Id: Ia305badadd300679975f230005c3e33c94050e4a Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/586396 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Lasse Folger <lassefolger@google.com>