• Austin Clements's avatar
    Fix the zero page allocator · 6f540f24
    Austin Clements 提交于
    Since the underlying kmem allocator uses the first sizeof(struct run)
    bytes as metadata for freed runs, the zero pages put into the zero
    page allocator's kmem were coming back with the first few bytes
    non-zero.  Fix this by explicitly zero'ing the run header of pages
    retrieved from kmem.
    
    usertests now passes the bss test.  It still fails twofiles and
    forktest.
    6f540f24
zalloc.cc 1.8 KB