mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-24 09:39:47 +00:00
When concurrent requests to wrap a type occurs, it is possible that two different descriptors are created for the same Go type. Add sufficient synchronization to ensure that one descriptor is ever returned for one Go type. Change-Id: Idbbca4c1877a70317b39900ae83bfc3085d4a9c5 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/168398 Reviewed-by: Herbie Ong <herbie@google.com>