diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-06-29 22:35:04 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-06-30 03:45:36 -0400 |
| commit | b883d6a54c460f8357b1107b3599108eb1f8580b (patch) | |
| tree | 64589d59861624f36771f0f1d1a300fe4d49ffec /src/rt/rust_kernel.cpp | |
| parent | 439b13f071a4a884ea8645670df83162ffcf129f (diff) | |
| download | rust-b883d6a54c460f8357b1107b3599108eb1f8580b.tar.gz rust-b883d6a54c460f8357b1107b3599108eb1f8580b.zip | |
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
Diffstat (limited to 'src/rt/rust_kernel.cpp')
| -rw-r--r-- | src/rt/rust_kernel.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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; } |
