Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AK+LibMain: Perform LSAN checks ahead of process shutdown
From the documentation of __lsan_do_leak_check: By calling this function early during process shutdown, you can instruct LSan to ignore shutdown-only leaks which happen later on. We currently have tens of thousands of lines of LSAN output at the end of each LibWeb test run on CI. May of these are expected leaks; e.g. we load a bunch of fonts at WebContent process start and just hold on to them statically, until process exit. By calling this LSAN method just before we exit from LibMain's main(), we get a much shorter report of what appear to be more legit leaks.
- Loading branch information