mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-01 11:58:21 +00:00
13e7f145cc
Under some rare circumstances registration can deadlock when lazy descriptor initialization consults the registry. Move the call triggering the lazy init out of the critical section. Fixes golang/protobuf#1052. Change-Id: Ic266e06b0db99fea65e797b879ce53e5342fff95 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/204804 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com> |
||
---|---|---|
.. | ||
registry_test.go | ||
registry.go |