|
|
|
|
|
by jjnoakes
4321 days ago
|
|
malloc() can fail in other ways. One is if you set a lower process limit. Another is if you are allocating lots of memory with alternating mprotect() permissions. On some systems (AIX for example) this uses up all of the memory for control structures WAY before hitting the address space limit (I've seen it fail after just a couple of GB). |
|