Hi GCC community, I'm working on a change to allow ASan to use file-backed memory allocations for both the Primary and Secondary allocators. This would be particularly helpful on systems with limited system memory, where ASan’s current use of private anonymous mmaps puts direct pressure on available system memory. Some systems may have other directories available that can be used by making allocations to be file backed in those directories thus saving the system memory.
Has there been any prior work or discussion in this area? If not, I'm happy to proceed with preparing and submitting a patch soon. Thanks, Archit