Skip to content

NativeMemory.AlignedAlloc() page boundary alignment #111784

Discussion options

You must be logged in to vote

AFAIR malloc and the family can return memory which is a part of a large page, there this assumption would AFAIR not be valid since your data would just be a part of it.
Additionally, relying on this will be problematic too even without large pages when it comes to freeing as you'd need to restore the original memory state before doing so.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@samuel-lucas6
Comment options

Comment options

You must be logged in to vote
1 reply
@samuel-lucas6
Comment options

Answer selected by samuel-lucas6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants