Closed lachlansneff closed 4 years ago
This was previously discussed here: https://github.com/rust-lang/rust/issues/44302
The conclusion was that it isn't implementable (or at least not efficiently) for the majority of allocator designs. This is best left to a separate trait for allocators that specifically support composability.
Ah, that makes sense.
AllocRef
should have anowns
method for determining if a particular allocation came from specific allocation. Obviously, many allocators couldn't know for sure, so it would have to be best effort.or
This could be very useful for implementing combinatorial allocators, like in https://www.youtube.com/watch?v=LIb3L4vKZ7U.