Bugzilla – Bug 130219
gcc / libstdc++ allocator
Last modified: 2005-10-24 09:28:02 UTC
Hi, it seems some distributions configure with --enable-libstdcxx-allocator=mt. apparently this is to speed up highly memory intensive / multithreaded C++ apps (OOffice?). dunno actual numbers offhand. did we think about this?
(In reply to comment #0) > did we think about this? It is not an option, according to our policy wrt binary compatibility: we even have a PR about this, libstdc++/21072, which includes a straightforward testcase: basically you cannot allocate with an allocator and deallocate with a different one. Those distributions broke binary compatibility. We want to do that? Also, in retrospect, we are "lucky" because that allocator is still not stable (see libstdc++/22309, 23591, 24469) and is affected by most of the usual problems of pooled allocators - e.g., memory is not released until the exit of the program - we discussed that on the list and we don't want it by default if only because of this.
ok, then, I guess.