Ported SlamAllocator from pedigree.