NativeMemory.AlignedAlloc() page boundary alignment #111784
Replies: 2 comments
-
The guarantee is provided by underlying system call, for example However, when working with other system calls, consider to be explicit about the syscall usages, to ensure any other implications are met. |
Beta Was this translation helpful? Give feedback.
-
AFAIR |
Beta Was this translation helpful? Give feedback.
-
Hi, I'd like to double check whether NativeMemory.AlignedAlloc() with
alignment: Environment.SystemPageSize
will properly align with a page/allocate memory at the beginning of a page boundary. My use case is memory locking on different OSes, like with VirtualLock. Many thanks.Beta Was this translation helpful? Give feedback.
All reactions