Re:Custom Allocators Demystified
by malkia on Tuesday October 13, 2020 @11:16PM
(#24772772)
No it doesn't. It can't replace allocators in DLLS (e.g. it's possible, but the jemalloc implementation was not able to do, unlike say mimalloc, though special precaution had to be taken during linking with mimalloc).
If you want to use jemalloc everywere, just create your own (stateless) allocator wrapper and instantiate your string with it.
In fact you probably don't even need to do that. Doesnt jemalloc provide a dll interposer mode that transparently replaces malloc/free?