[PATCH] D37590: [scudo] RFC thread specific data refactoring
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 7 17:05:58 PDT 2017
vitalybuka added inline comments.
================
Comment at: lib/scudo/scudo_allocator.cpp:460
+ getBackendAllocator().deallocatePrimary(getAllocatorCache(TSD), Ptr);
+ TSD->unlock();
} else {
----------------
eugenis wrote:
> Perhaps this could be done in a RAII fashion? Having to do unlock() on every successfull TSD access is error-prone.
e.g. with __sanitizer::at_scope_exit
https://reviews.llvm.org/D37590
More information about the llvm-commits
mailing list