3 ms·
Does the custom allocator support allow for runtime customisation e.g. the library user calling it to set allocator functions then starting to use it? And I exp
by masklinn 11y ago
Does the custom allocator support allow for runtime customisation e.g. the library user calling it to set allocator functions then starting to use it? And I expect the custom allocator is global?
- steveklabnik 11y agoCurrently, it replaces the global allocator. Using multiple allocators is an interface that's still being actively worked on, it's in the RFC stage, so no code has landed yet.
- Manishearth 11y agoIt's a build option, and yes, it's global, but of course you can build an allocator that respects some global parameters.