]> git.lizzy.rs Git - rust.git/commit
simplify the exchange allocator
authorDaniel Micay <danielmicay@gmail.com>
Sun, 30 Jun 2013 02:35:04 +0000 (22:35 -0400)
committerDaniel Micay <danielmicay@gmail.com>
Sun, 30 Jun 2013 07:45:36 +0000 (03:45 -0400)
commitb883d6a54c460f8357b1107b3599108eb1f8580b
tree64589d59861624f36771f0f1d1a300fe4d49ffec
parent439b13f071a4a884ea8645670df83162ffcf129f
simplify the exchange allocator

* stop using an atomic counter, this has a significant cost and
  valgrind will already catch these leaks
* remove the extra layer of function calls
* remove the assert of non-null in free, freeing null is well defined
  but throwing a failure from free will not be
* stop initializing the `prev`/`next` pointers
* abort on out-of-memory, failing won't necessarily work
src/libstd/os.rs
src/libstd/rt/global_heap.rs
src/libstd/unstable/exchange_alloc.rs [deleted file]
src/libstd/unstable/lang.rs
src/rt/rust_exchange_alloc.cpp
src/rt/rust_exchange_alloc.h
src/rt/rust_kernel.cpp
src/rt/rustrt.def.in