3 ms·
This is well outside my expertise, but some discussion happened at the time https://www.reddit.com/r/programming/comments/56xxmb/the_strange_details_of_stdstrin
by sqrt_1 1y ago
This is well outside my expertise, but some discussion happened at the time
https://www.reddit.com/r/programming/comments/56xxmb/the_strange_details_of_stdstring_at_facebook/ https://www.reddit.com/r/programming/comments/56xxmb/the_str...
Some people suggest that maybe Facebook runs with MAP_UNINITIALIZED
- Arnavion 1y agoUnfortunately this hypothesis is also wrong. MAP_UNINITIALIZED can only be enabled in the kernel when there is no MMU, and in that case the page will already be in physical memory, so the very first pointer dereference will read the correct byte, not a fake zero because it's "uninitialized".