tikv / jemallocator

Rust allocator using jemalloc as a backend
Other
343 stars 57 forks source link

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

Open MrCroxx opened 2 years ago

MrCroxx commented 2 years ago

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?

BusyJay commented 2 years ago

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

BusyJay commented 1 year ago

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

MrCroxx commented 1 year ago

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