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:
d2c093e
)
[NFC][lsan] Use kIgnored in MarkInvalidPCCb
author
Vitaly Buka
<vitalybuka@google.com>
Wed, 8 Dec 2021 03:49:44 +0000
(19:49 -0800)
committer
Vitaly Buka
<vitalybuka@google.com>
Wed, 8 Dec 2021 03:53:08 +0000
(19:53 -0800)
kIgnored didn't exist when the code was added, but it should be
equivalent to kReachable.
The goal is to refactor MarkInvalidPCCb to avoid StackDepotGet
in StopTheWorld.
compiler-rt/lib/lsan/lsan_common.cpp
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/lsan/lsan_common.cpp
b/compiler-rt/lib/lsan/lsan_common.cpp
index
308dbb3
..
1725610
100644
(file)
--- a/
compiler-rt/lib/lsan/lsan_common.cpp
+++ b/
compiler-rt/lib/lsan/lsan_common.cpp
@@
-505,7
+505,7
@@
static void MarkInvalidPCCb(uptr chunk, void *arg) {
// it as reachable, as we can't properly report its allocation stack anyway.
if (caller_pc == 0 || (param->skip_linker_allocations &&
GetLinker()->containsAddress(caller_pc))) {
- m.set_tag(k
Reachable
);
+ m.set_tag(k
Ignored
);
param->frontier->push_back(chunk);
}
}