Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/lsan/lsan_posix.cpp | ||
---|---|---|
65 | Here we need to get into specific lsan/asan or hwasan thread registry you probably need lsan::FindThreadContextByOsIDLocked then? | |
compiler-rt/lib/lsan/lsan_thread.h | ||
48 | Why do you need this in header? |
compiler-rt/lib/lsan/lsan_posix.cpp | ||
---|---|---|
65 | Yes, but with asan we have no GetLsanThreadRegistryLocked, FindThreadContextByOsIDLocked should look into asan thread registry |
compiler-rt/lib/lsan/lsan_posix.cpp | ||
---|---|---|
65 | Well, asan has it's own implementation of GetThreadRangesLocked: https://tinyurl.com/4hf7a5cx and it is not using the TreadRegistry at all. |
compiler-rt/lib/lsan/lsan_posix.cpp | ||
---|---|---|
65 | If we have to be pedantic __asan::GetAsanThreadByOsIDLocked uses the registry so technically it is using it indirectly through another function. But still we don't need to provide generic implementation for GetThreadRegistryLocked which is the point of this patch. |
Here we need to get into specific lsan/asan or hwasan thread registry
with this patch it's always lsan
you probably need lsan::FindThreadContextByOsIDLocked then?