4 ms·
In that case the bug he described simply does not exist.
by Arnavion 1y ago
In that case the bug he described simply does not exist.
- sqrt_1 1y agoThis 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".