[compiler-rt] 7d32866 - [hwasan] Use GetBlockBegin instead of GetBlockBeginFastLocked

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 5 16:17:59 PDT 2023


Author: Vitaly Buka
Date: 2023-04-05T16:17:44-07:00
New Revision: 7d328668691afc32402a7e3c4ce2efb5547be2b2

URL: https://github.com/llvm/llvm-project/commit/7d328668691afc32402a7e3c4ce2efb5547be2b2
DIFF: https://github.com/llvm/llvm-project/commit/7d328668691afc32402a7e3c4ce2efb5547be2b2.diff

LOG: [hwasan] Use GetBlockBegin instead of GetBlockBeginFastLocked

Asan and lsan use non-locked version as well.
IgnoreObjectLocked name is missleading.

Added: 
    

Modified: 
    compiler-rt/lib/hwasan/hwasan_allocator.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/hwasan/hwasan_allocator.cpp b/compiler-rt/lib/hwasan/hwasan_allocator.cpp
index e6f46ed0933c1..b3432f9318785 100644
--- a/compiler-rt/lib/hwasan/hwasan_allocator.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_allocator.cpp
@@ -622,7 +622,7 @@ IgnoreObjectResult IgnoreObjectLocked(const void *p) {
   p = __hwasan::InTaggableRegion(reinterpret_cast<uptr>(p)) ? UntagPtr(p) : p;
   uptr addr = reinterpret_cast<uptr>(p);
   uptr chunk =
-      reinterpret_cast<uptr>(__hwasan::allocator.GetBlockBeginFastLocked(p));
+      reinterpret_cast<uptr>(__hwasan::allocator.GetBlockBegin(p));
   if (!chunk)
     return kIgnoreObjectInvalid;
   __hwasan::Metadata *metadata = reinterpret_cast<__hwasan::Metadata *>(


        


More information about the llvm-commits mailing list