-
-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
Line 515 in 02dad0f
| /* We use calloc() so we give a chance for the OS to reserve virtual memory without really using physical memory, |
calloc actually does the opposite of this, since it zeroes out the memory it forces page faults on every allocated page. the OS does often guarantee that newly allocated memory will be zeroed, so a calloc implementation could avoid zeroing the memory when it's freshly allocated from the OS and not reused, but that would require not implementing calloc in terms of malloc and i know at least musl does that
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels