Skip to content

Commit

Permalink
[NFC][lsan] Use kIgnored in MarkInvalidPCCb
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vitalybuka committed Dec 8, 2021
1 parent d2c093e commit 8ed4d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/lsan/lsan_common.cpp
Expand Up @@ -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(kReachable);
m.set_tag(kIgnored);
param->frontier->push_back(chunk);
}
}
Expand Down

0 comments on commit 8ed4d28

Please sign in to comment.