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

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

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

Visibility: public

Requested revision: f71f27bcb0ceb851a7c95f3970d644623b8d67ba

Requested commit: f71f27bcb0ceb851a7c95f3970d644623b8d67ba

Commit: f71f27bcb0ceb851a7c95f3970d644623b8d67ba

Tree: 7811b7a0c8a678a3d216f86354ec84c792674b5d

Author: Lucas Santos

Committer: Veikka Tuominen

## 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

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

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