From b883d6a54c460f8357b1107b3599108eb1f8580b Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 29 Jun 2013 22:35:04 -0400 Subject: 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/rt/rust_kernel.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/rt/rust_kernel.cpp') diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp index c1c40222f1a..583f836c0d6 100644 --- a/src/rt/rust_kernel.cpp +++ b/src/rt/rust_kernel.cpp @@ -211,7 +211,6 @@ rust_kernel::run() { assert(osmain_driver != NULL); osmain_driver->start_main_loop(); sched_reaper.join(); - rust_check_exchange_count_on_exit(); return rval; } -- cgit 1.4.1-3-g733a5