# Avoid unnecessary operation in PageAllocator\. · gitcafe/zig

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

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

Visibility: public

Requested revision: e57c9c0931cba3cdec6fba562aeb5c1910d8f2c4

Requested commit: e57c9c0931cba3cdec6fba562aeb5c1910d8f2c4

Commit: e57c9c0931cba3cdec6fba562aeb5c1910d8f2c4

Tree: f1f099f8195f0943c250a899922bc3abf6a7492e

Author: Lucas Santos

Committer: Andrew Kelley

## Message

````
Avoid unnecessary operation in PageAllocator.

There's no need to call `alignForward` before `VirtualAlloc`.
From [MSDN](https://learn.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualalloc):
```
If the lpAddress parameter is NULL, this value is rounded up to the next page boundary
```
````

## Parents

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

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