Fixed allocator failure with very large max memory sizes