Michael Stapelberg 1d4293e052 internal/impl: fix size cache semantics with lazy decoding
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>
2024-05-17 14:13:36 +00:00
..
2024-04-23 09:50:20 +00:00
2022-01-04 22:57:54 +00:00
2024-04-23 09:50:20 +00:00
2024-05-06 12:18:44 +00:00
2022-01-04 22:57:54 +00:00