mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-25 19:02:07 -05:00
c4a9f0db82
Previous a mallocation was marked as 'reachable' when any other mallocation or memory region had a pointer to that mallocation. However there could be the situation that two mallocations have pointers to each other while still being unreachable from anywhere else. They would be marked as 'reachable' regardless. This patch replaces the old way of detemining whether a mallocation is reachable by analyzing the dependencies of the different mallocations using a graph-approach. Now mallocations are only reachable if pointed to by other reachable mallocations or other memory regions. A nice bonus is that this gets rid of a nested for_each_mallocation, so the complexity of leak finding becomes linear instead of quadratic. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Emulator.cpp | ||
Emulator.h | ||
Emulator_syscalls.cpp | ||
main.cpp | ||
MallocTracer.cpp | ||
MallocTracer.h | ||
MmapRegion.cpp | ||
MmapRegion.h | ||
Range.cpp | ||
Range.h | ||
RangeAllocator.cpp | ||
RangeAllocator.h | ||
Region.cpp | ||
Region.h | ||
Report.h | ||
SimpleRegion.cpp | ||
SimpleRegion.h | ||
SoftCPU.cpp | ||
SoftCPU.h | ||
SoftMMU.cpp | ||
SoftMMU.h | ||
ValueWithShadow.h |