)]}' { "commit": "73618879f4294820aef0e4f0cf2137e8c3d547a2", "tree": "ed403c9781d99aa62ea1d029ef810420c727b7e2", "parents": [ "8e9d5f6e8a0687384bc0db5f6188b49e724c5e5c" ], "author": { "name": "Joe Tsai", "email": "joetsai@digital-static.net", "time": "Fri Oct 04 14:58:46 2019 -0700" }, "committer": { "name": "Joe Tsai", "email": "joetsai@digital-static.net", "time": "Sun Oct 06 03:28:52 2019 +0000" }, "message": "reflect/protoregistry: protect global registries with a lock\n\nThe global registry is initialized via generated code.\nThe Go language guarantees that these are serialized (non concurrently).\nThe main concern is when a concurrent read operation occurs while\nregistration is still ongoing. In such a case, we do need a lock to\nserialize the read with regard to the writes (i.e. registrations).\n\nChange-Id: Ied35d6f8d2620f448cb281c3ec46d8de893b5671\nReviewed-on: https://go-review.googlesource.com/c/protobuf/+/199217\nReviewed-by: Damien Neil \u003cdneil@google.com\u003e\n", "tree_diff": [ { "type": "modify", "old_id": "a4df65b4390d8c58bca42608839380076accb4b3", "old_mode": 33188, "old_path": "reflect/protoregistry/registry.go", "new_id": "cba713f5feb233ed21acc953f93898597f525fac", "new_mode": 33188, "new_path": "reflect/protoregistry/registry.go" } ] }