mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-01 03:14:16 +00:00
e9187326c3
Avoid a deadlock when registering a legacy ExtensionType, caused by initialization of the "internal/impl".ExtensionInfo calling IsMessageSet on the MessageDescriptor of the type being extended. We can avoid this deadlock either by initializing the ExtensionType outside of the GlobalTypes mutex, or by moving IsMessageSet to L1 initialization of the MessageDescriptor so that it doesn't trigger lazy init. CL 204804 takes the former approach; this CL takes the latter. Change-Id: Idfc1ed36a23a139839290ea32492142a17f68cf5 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/205957 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com> |
||
---|---|---|
.. | ||
protodesc | ||
protoreflect | ||
protoregistry |