Re:When the memory allocator works against you
by deathanatos on Sunday March 12, 2017 @05:50PM
(#13853337)
It might handle the malloc failure by crashing. Some languages (e.g., Rust) and runtimes (e.g., glib) presume that small allocations always succeed; a failure in such an allocation immediately crashes the program (as the underlying API provides no means to report the failure).
[ Parent
| on HN ]
Re:When the memory allocator works against you
by steveklabnik on Sunday March 12, 2017 @10:26PM
(#13854777)
Rust the language doesn't know anything about allocation; it's entirely a standard library decision.