On Tue, 14 Sep 2010, Pekka Enberg wrote:I'll do that. Thanks!
Allocate from the other end like __OBJECT_POISON.Put this into mm/slub.c as slub only flag? What is the difference fromI can put it in mm/slub.c but I was worried about someone reusing the bit for
refcount == 1?
something else.
I tried that too. It doesn't work because we get merged to kmalloc caches and can't do kfree() on them.Do you mean refcount == 2? You don't know during kmem cache release time ifAdd it only to kmem_cache_create() not to kmem_cache_open. That is not
someone was merged to the cache or not.
Ok. Keeping the original name. Why dont we do strdup by default and alwaysI tried that. It gets very nasty during bootstrap.
do a kfree(s->name) on close?
used during bootstrap. The bootstrap caches do not matter since they are
never freed