Re: [PATCH] rust: slab: add basic slab module

Elijah
2025-09-25T18:52:42Z

On 9/25/2025 11:51 AM, Elijah wrote:
> On 9/25/2025 11:15 AM, Danilo Krummrich wrote:
>> What are the other complex issues you are referring to?
>
> I think I misunderstood what was involved for (4). I was thinking of
> keeping the extra reference in the object but I think it can be done per
> CPU. I'm not totally sure how much would be changed in the kernel but no
> matter the implementation for (4) there will be some complexity
>
>> I'm not sold on duplicating the Box code just yet. What issues are you
>> referring
>> to?
>
> mainly where the cache isn't static. if you have kmem accounting enabled
> and a ZST that encodes the original cache's address then that would
> break, unless I'm misunderstanding (3), but that's just an example. I'm
> just thinking of potential code in the kernel now