News for hackers. Stuff that matters.
Re:Once upon a time, memory allocators made sense by pjc50 on Monday January 18, 2016 @05:57PM (#10927636)
"malloc() won't fail"

"oh yes it does"

"oh no it doesn't"

demo of malloc failing

"alloca() won't fail!"

Stop moving the goalposts. Besides, alloca() tends to crash your program a lot sooner as stack allocation is usually very limited, especially in a shared-memory multithreading context. Hardly anyone uses alloca().

There are no comments on this comment yet.