Skip to content

expose c23 free_sized/free_aligned_sized#832

Open
SchrodingerZhu wants to merge 2 commits intomicrosoft:mainfrom
SchrodingerZhu:c23-free-family
Open

expose c23 free_sized/free_aligned_sized#832
SchrodingerZhu wants to merge 2 commits intomicrosoft:mainfrom
SchrodingerZhu:c23-free-family

Conversation

@SchrodingerZhu
Copy link
Collaborator

@SchrodingerZhu SchrodingerZhu commented Mar 25, 2026

See https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf 7.24.3.4 and 7.24.3.5 for newly added free functions.

A peculiar requirement is that:

  • the result of an malloc, calloc, or realloc call may not be passed to free_aligned_sized
  • the result of an aligned_alloc call may not be passed to free_sized

In SCUDO, the tracked this by attaching tag in alloc metadata. not sure if we want to check this or not.

@SchrodingerZhu
Copy link
Collaborator Author

I may have mixed the order of align/size. I will fix that tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant