forked from Imagelibrary/rtems
rbheap: Fix rtems_rbheap_free()
Remove unused descriptor of merged free chunks from the free chain and add them to the spare descriptors. Update #2417.
This commit is contained in:
@@ -171,6 +171,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,
|
||||
RBT_RIGHT,
|
||||
|
||||
Reference in New Issue
Block a user