Fixed a major corruption bug. Hotpatched memset to detect writes to the code cache that overwrite non-zero bytes, which found the issue immediately. Also fixed a minor issue in the script that computes approximate kernel function sizes, as it was previously reporting memset as 0 bytes. Updated qemu.sh to use 2 cores now, which I'm in the process of debugging. Updated the staged allocation functions of the bump pointer allocators to return pointers to constants, to better communicate that the returned memory should not be written to. Added some extra paranoid checks in the kernel cpu/thread state functions to make sure that they're being used with interrupts disabled.