llvm-project/compiler-rt/test/lsan
Leonard Grey ed2c3f46f5 [lsan][Darwin] Scan libdispatch and Foundation memory regions
libdispatch uses its own heap (_dispatch_main_heap) for some allocations, including the dispatch_continuation_t that holds a dispatch source's event handler.
Objective-C block trampolines (creating methods at runtime with a block as the implementations) use the VM_MEMORY_FOUNDATION region (see 8701d5672d/runtime/objc-block-trampolines.mm (L371)).

This change scans both regions to fix false positives. See tests for details; unfortunately I was unable to reduce the trampoline example with imp_implementationWithBlock on a new class, so I'm resorting to something close to the bug as seen in the wild.

Differential Revision: https://reviews.llvm.org/D129385
2022-09-14 16:46:40 -04:00
..
TestCases [lsan][Darwin] Scan libdispatch and Foundation memory regions 2022-09-14 16:46:40 -04:00
CMakeLists.txt
lit.common.cfg.py Revert "[Driver] Default CLANG_DEFAULT_PIE_ON_LINUX to ON" 2022-02-26 15:32:49 +01:00
lit.site.cfg.py.in