3 ms·
I somehow misread your comment the first time through and thought you were suggesting the ability to ask the OS: "Hey, I'm a pointer, is there anything in front
by bee_rider 4y ago
I somehow misread your comment the first time through and thought you were suggesting the ability to ask the OS: "Hey, I'm a pointer, is there anything in front of my block of memory, if so can you move it elsewhere so that I can expand?" This would of course be a pretty silly idea but it would be funny to give the OS folks a whole new class of use-after bugs to worry about.
Edit: Let's call it "memoveouttamyway"
- FeepingCreature 4y agoIsn't that `realloc`? At the allocator level rather than OS level, but still.