Commit 6d776dfe authored by Protobuf Team Bot's avatar Protobuf Team Bot Committed by Copybara-Service
Browse files

protobuf: fix a data race in AbstractProtobufList

Unconditional update of isMutable causes data races for
LazyStringArrayList::EMPTY_LIST that is used as the default value
for protobuf fields.

Not writing to it unconditionally may also improve performance
by reducing contention for the presumably widely shared EMPTY_LIST object.

PiperOrigin-RevId: 510366298
parent d41deb9d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment