News for hackers. Stuff that matters.
Re:Custom Allocators Demystified by gpderetta on Tuesday October 13, 2020 @06:39PM (#24771121)
Hum, pmr is for type erasing allocators, i.e. you need multiple allocators and you do not want to instantiate your templates more than once.

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?

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).