refactor PortalAlloc structure to reduce stack frame size in portalalloc driver