rbheap: Fix rtems_rbheap_free()

Remove unused descriptor of merged free chunks from the free chain and
add them to the spare descriptors.

Close #2417.
This commit is contained in:
Sebastian Huber
2015-09-11 11:28:13 +02:00
parent 5e4714b032
commit 10c4636947
2 changed files with 21 additions and 21 deletions
+5
View File
@@ -170,6 +170,11 @@ static void test_chunk_tree(
.chunk_end = chunk_begin + chunk_count
};
rtems_test_assert(
rtems_chain_node_count_unprotected(&control->spare_descriptor_chain)
== PAGE_COUNT - chunk_count
);
_RBTree_Iterate(
&control->chunk_tree,
chunk_visitor,