commit | c70f5d59d1d7dd75d0850f4ac329c5d77a5db39f | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Wed Jan 29 14:40:11 2020 -0800 |
committer | Damien Neil <dneil@google.com> | Wed Jan 29 23:04:37 2020 +0000 |
tree | 99ba68888591ce76eedba46c7f68e1c53199ec9e | |
parent | ca6f40c8805ac1ec4c94afccfc99a3f539dbd7f4 [diff] |
internal/impl: avoid redundant lazy extension inits After taking the lock on a lazy extension's state, check to see if it was initialized while we were waiting for the lock. Change-Id: I1cbd52e9d655eec6c9142c97689ae36f219a28f2 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/216898 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
WARNING: This repository is in active development. There are no guarantees about API stability. Breaking changes will occur until a stable release is made and announced.
This repository is for the development of the next major Go implementation of protocol buffers. This library makes breaking API changes relative to the existing Go protobuf library. Of particular note, this API aims to make protobuf reflection a first-class feature of the API and implements the protobuf ecosystem in terms of reflection.
List of relevant design documents:
We appreciate community contributions. See CONTRIBUTING.md.
Issues regarding the new API can be filed at github.com/golang/protobuf. Please use a APIv2:
prefix in the title to make it clear that the issue is regarding the new API work.