| commit | 4dbd4fcf8626453949625bf36976e668094cfbb1 | [log] [tgz] | 
|---|---|---|
| author | Kuba Brecka <kuba.brecka@gmail.com> | Sun Sep 04 09:55:12 2016 | 
| committer | Kuba Brecka <kuba.brecka@gmail.com> | Sun Sep 04 09:55:12 2016 | 
| tree | bb56168016d3cf4cd4a0f4cee12287b95d2aecb6 | |
| parent | 226cd0674ec0ef4db9c126373e30078f33526d7e [diff] | 
[libcxx] Fix a data race in call_once call_once is using relaxed atomic load to perform double-checked locking, which contains a data race. The fast-path load has to be an acquire atomic load. Differential Revision: https://reviews.llvm.org/D24028 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@280621 91177308-0d34-0410-b5e6-96231b3b80d8