projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf94afa
)
[hwasan] Use GetBlockBegin instead of GetBlockBeginFastLocked
author
Vitaly Buka
<vitalybuka@google.com>
Wed, 5 Apr 2023 23:12:04 +0000
(16:12 -0700)
committer
Vitaly Buka
<vitalybuka@google.com>
Wed, 5 Apr 2023 23:17:44 +0000
(16:17 -0700)
Asan and lsan use non-locked version as well.
IgnoreObjectLocked name is missleading.
compiler-rt/lib/hwasan/hwasan_allocator.cpp
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/hwasan/hwasan_allocator.cpp
b/compiler-rt/lib/hwasan/hwasan_allocator.cpp
index
e6f46ed
..
b3432f9
100644
(file)
--- 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.GetBlockBegin
FastLocked
(p));
+ reinterpret_cast<uptr>(__hwasan::allocator.GetBlockBegin(p));
if (!chunk)
return kIgnoreObjectInvalid;
__hwasan::Metadata *metadata = reinterpret_cast<__hwasan::Metadata *>(