A system can include a memory to store data and machine readable instructions. The memory can include a stack comprising an array of pointers to memory blocks in a heap. The system can also include a hardware assisted garbage collector (HWAGC) to control allocation of the blocks of memory in the heap. The HWAGC can also maintain a copy of the stack and detect a dead object in the heap.