vm - hash table for block cache

This commit is contained in:
Ben Gras
2010-10-15 09:10:14 +00:00
parent cb2e3a98a2
commit ddde360e3e
11 changed files with 116 additions and 36 deletions

View File

@@ -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++;