[PATCH] D55249: [XRay] Use preallocated memory for XRay profiling
Marcus Boerger via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 4 22:45:48 PST 2018
mboerger added inline comments.
================
Comment at: compiler-rt/lib/xray/xray_profiling.cc:359
- s32 CurrentStatus = XRayLogInitStatus::XRAY_LOG_UNINITIALIZED;
- if (!atomic_compare_exchange_strong(&ProfilerLogStatus, &CurrentStatus,
+ s32 CurrentStatus = atomic_exchange(&ProfilerLogStatus,
XRayLogInitStatus::XRAY_LOG_INITIALIZING,
----------------
maybe not :-)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55249/new/
https://reviews.llvm.org/D55249
More information about the llvm-commits
mailing list