https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80658
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Bernd Paysan from comment #0) > The documentation of mt_allocator is at least somewhat misleading: > > https://gcc.gnu.org/onlinedocs/libstdc++/manual/mt_allocator_impl.html > > "Notes about deallocation. This allocator does not explicitly release > memory." > > Well, it does add freed memory to its freelists and reuse it. It's just not > giving back unused memory to the OS. I've made a tweak to that text which should clarify things.