rust/src/libstd/unstable
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
..
dynamic_lib.rs Fix remaining cases of leaking imports 2014-01-07 23:51:38 -08:00
finally.rs Inline Finallyalizer::drop, allowing LLVM to optimize finally. 2013-12-12 07:07:45 +02:00
intrinsics.rs auto merge of #11585 : nikomatsakis/rust/issue-3511-rvalue-lifetimes, r=pcwalton 2014-01-17 07:56:45 -08:00
lang.rs libstd: Added more #[inline] annotations and replaced uses of libc::abort with the intrinsic. 2014-01-15 11:45:12 +02:00
mod.rs green: Rip the bandaid off, introduce libgreen 2013-12-24 19:59:52 -08:00
mutex.rs handle zero-size allocations correctly 2014-01-17 23:41:31 -05:00
raw.rs add implementation of Repr for ~[T] 2014-01-14 22:01:44 -05:00
simd.rs
stack.rs extratest: Fix all leaked trait imports 2014-01-07 23:51:38 -08:00
sync.rs std: Get stdtest all passing again 2013-12-24 19:59:52 -08:00