[PATCH] D93907: Make gCrashRecoveryEnabled atomic

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 29 11:12:35 PST 2020


MaskRay added a comment.

The boolean variable is guarded by `std::lock_guard<std::mutex> L(*gCrashRecoveryContextMutex);` so non-atomic works.
Making it a counter is fine.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93907/new/

https://reviews.llvm.org/D93907



More information about the llvm-commits mailing list