On Linux if I were to malloc(1024 * 1024 * 1024), what does malloc actually do?
malloc(1024 * 1024 * 1024)
I\'m sure it assigns a virtual address to the allocation (by walking the
On most Unix-like systems, it manages the brk boundary. The VM adds pages when hit by the processor. At least Linux and BSDs do this.