[PATCH] D88523: scudo: Make it thread-safe to set some runtime configuration flags.
Evgenii Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 13:45:00 PDT 2020
eugenis added inline comments.
================
Comment at: compiler-rt/lib/scudo/standalone/options.h:66
+ break;
+ }
+ }
----------------
This could be more readable in the form of
```
do { ... } while (!atomic_compare_exchange_strong
```
Also, there is no need to reload Opts on each iteration - compare_exchange does it for you.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88523/new/
https://reviews.llvm.org/D88523
More information about the llvm-commits
mailing list