vm - hash table for block cache
This commit is contained in:
@@ -467,6 +467,9 @@ PUBLIC void slabfree(void *mem, int bytes)
|
||||
#if SANITYCHECKS
|
||||
#if MEMPROTECT
|
||||
slabunlock(mem, bytes);
|
||||
#endif
|
||||
#if JUNKFREE
|
||||
memset(mem, 0xa6, bytes);
|
||||
#endif
|
||||
*(u32_t *) mem = JUNK;
|
||||
nojunkwarning++;
|
||||
|
||||
Reference in New Issue
Block a user