Modified shm.c for the simpler allocator.
Removed unused lines.