# std.heap.PageAllocator: restore high alignment functionality · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/91f41bdc7095635b752af0ca3aee0a41ce864f8c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 91f41bdc7095635b752af0ca3aee0a41ce864f8c

Requested commit: 91f41bdc7095635b752af0ca3aee0a41ce864f8c

Commit: 91f41bdc7095635b752af0ca3aee0a41ce864f8c

Tree: 677a487ea33489462a3575d33d5567b0a9e40504

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.heap.PageAllocator: restore high alignment functionality

This allocator now supports alignments greater than page size, with the
same implementation as it used before.

This is a partial revert of ceb0a632cfd6a4eada6bd27bf6a3754e95dcac86.

It looks like VirtualAlloc2 has better solutions to this problem,
including features such as MEM_RESERVE_PLACEHOLDER and MEM_LARGE_PAGES.
This possibility can be investigated as a follow-up task.

```

## Parents

- [5c638845390fed5cf1c504ac013a4f75c3b7c690](https://git.cafe/gitcafe/zig/commit/5c638845390fed5cf1c504ac013a4f75c3b7c690?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/91f41bdc7095635b752af0ca3aee0a41ce864f8c?format=markdown)
