Call malloc_trim() under memory pressure
@alexl pointed out this article about using
malloc_trim() to release the memory which glibc holds on to on the assumption that there will be more
malloc() calls soon (rather than releasing unused heap pages back to the kernel immediately).
We might want to consider calling it when under memory pressure, in the
GMemoryMonitor code, if it’s available.