[hwasan] Use GetBlockBegin instead of GetBlockBeginFastLocked
Asan and lsan use non-locked version as well. IgnoreObjectLocked name is missleading.
This commit is contained in:
1 parent
bf94afa10e
commit
7d32866869
1 file changed
+1
-1
@@ -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 *>(
|
||||
|
||||
Reference in new issue
Block a user