mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:27:45 +00:00
Kernel: Add memory scrubbing in slab_alloc() and slab_dealloc()
These now scrub allocated and freed memory like kmalloc()/kfree() was already doing.
This commit is contained in:
parent
934b1d8a9b
commit
37d336d741
3 changed files with 16 additions and 0 deletions
|
@ -29,6 +29,9 @@
|
|||
#include <AK/Function.h>
|
||||
#include <AK/Types.h>
|
||||
|
||||
#define SLAB_ALLOC_SCRUB_BYTE 0xab
|
||||
#define SLAB_DEALLOC_SCRUB_BYTE 0xbc
|
||||
|
||||
class JsonObjectSerializer;
|
||||
|
||||
void* slab_alloc(size_t slab_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue