diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2017-03-29 10:46:04 -0400 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2017-03-29 13:03:33 -0400 |
commit | 130c166697cc7df082197a10936dd9554c3e4083 (patch) | |
tree | a8e22004c8673f935825a40606a4091e9293175a /java/lite | |
parent | ba3fa41ba86cd87f1947b9e66e450b9dc39e85a6 (diff) | |
download | protobuf-130c166697cc7df082197a10936dd9554c3e4083.tar.gz protobuf-130c166697cc7df082197a10936dd9554c3e4083.tar.bz2 protobuf-130c166697cc7df082197a10936dd9554c3e4083.zip |
Remove the use of dispatch_once that is heap backed.
Apple recently updated the docs on dispatch_once to point out
that the storage for the dispatch_once_t must be static or global,
but not something that was ever used before as the implementation
doesn't use a memory barrier. So we drop the use and create the
semaphore when needed and use an atomic swap deal with any
threading races.
Diffstat (limited to 'java/lite')
0 files changed, 0 insertions, 0 deletions