2 ms·
> In current architectures VM is flat and continuous Looking at /proc/$PID/maps for firefox, it contains well over 100 noncontiguous map ranges. The address 0x
by jcranmer 7y ago
> In current architectures VM is flat and continuous
Looking at /proc/$PID/maps for firefox, it contains well over 100 noncontiguous map ranges. The address 0x11b000000000, for example, is not mapped to anything, but addresses above and below it are.
You can handle the heap growing by just allocating a new page for it somewhere in free memory. Your heap doesn't have to be contiguous.