kernel/slab: Add some more info to a paranoid ASSERT in object_cache_alloc.

This was triggered in #19782. Ultimately more information will be
needed to diagnose what overwrote the memory, and this is a start.
This commit is contained in:
Augustin Cavalier
2025-10-10 21:16:20 -04:00
parent 9359d0860b
commit f7d2fc176e
+2 -1
View File
@@ -1294,7 +1294,8 @@ object_cache_alloc(object_cache* cache, uint32 flags)
#if PARANOID_KERNEL_FREE
if (cache->object_size >= (sizeof(void*) * 2)) {
ASSERT_ALWAYS(*(uint32*)object == 0xdeadbeef);
ASSERT_ALWAYS_PRINT(*(uint32*)object == 0xdeadbeef,
"object %p", object);
}
#endif