jemallocator icon indicating copy to clipboard operation
jemallocator copied to clipboard

feature `alloc_trait` can not compile with the current Rust version

Open MrCroxx opened this issue 3 years ago • 3 comments

Feature alloc_trait cannot compile because the interface core::alloc::Excess has been removed and core::alloc::Alloc is replaced by core::alloc::Allocator and its interfaces are changed.

I fixed it in my own repo by imitating std::alloc::System (PR), but I'm not sure if it's the best way.

Is there any advises for it?

MrCroxx avatar Aug 30 '22 09:08 MrCroxx

Feel free to contribute it to jemallocator. Though we need to consider whether the implementation can be optimized for jemalloc specifically.

BusyJay avatar Aug 30 '22 15:08 BusyJay

Hi, @MrCroxx. Do you have time to send a PR?

BusyJay avatar Feb 17 '23 13:02 BusyJay

@BusyJay There was a PR and I've used it well for some time in my own project. But I'm not sure how the naive implementation works in more general cases. Feel free to reopen it.

MrCroxx avatar Feb 18 '23 07:02 MrCroxx