On Sat, May 17, 2025 at 5:04 AM Archit Jindal <architjindal1...@gmail.com> wrote: > > 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.
GCC is not where the main development of the library used for ASAN happens. GCC pulls the asan library from the LLVM source base so you might want to work there first. If this is a compiler only change then GCC is the right place but I suspect this is a library change so LLVM is where the upstream sources are located. GCC tries to only have a few local patches to the asan library sources too. This is referenced in libsanitizer/README.gcc too: All non-trivial changes, functionality improvements, etc. should go through the upstream tree first and then be merged back to the GCC tree. Thanks, Andrew Pinski > > Thanks, > Archit