kernel/slab: Run slab_object automatically when the 0xdeadbeef assert fails.
This commit is contained in:
@@ -1295,7 +1295,7 @@ object_cache_alloc(object_cache* cache, uint32 flags)
|
|||||||
#if PARANOID_KERNEL_FREE
|
#if PARANOID_KERNEL_FREE
|
||||||
if (cache->object_size >= (sizeof(void*) * 2)) {
|
if (cache->object_size >= (sizeof(void*) * 2)) {
|
||||||
ASSERT_ALWAYS_PRINT(*(uint32*)object == 0xdeadbeef,
|
ASSERT_ALWAYS_PRINT(*(uint32*)object == 0xdeadbeef,
|
||||||
"object %p", object);
|
"object %p @! slab_object %p", object, object);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user