rust/src/libnative
Daniel Micay ae2a5ecbf6 handle zero-size allocations correctly
The `malloc` family of functions may return a null pointer for a
zero-size allocation, which should not be interpreted as an
out-of-memory error.

If the implementation does not return a null pointer, then handling
this will result in memory savings for zero-size types.

This also switches some code to `malloc_raw` in order to maintain a
centralized point for handling out-of-memory in `rt::global_heap`.

Closes #11634
2014-01-17 23:41:31 -05:00
..
io handle zero-size allocations correctly 2014-01-17 23:41:31 -05:00
bookkeeping.rs Fixing a typo: bookeeping -> bookkeeping 2014-01-16 14:17:56 +08:00
lib.rs Fixing a typo: bookeeping -> bookkeeping 2014-01-16 14:17:56 +08:00
task.rs Fixing a typo: bookeeping -> bookkeeping 2014-01-16 14:17:56 +08:00