Collapse arena_avail_tree_* into arena_run_tree_*.

These tree types converged to become identical, yet they still had
independently generated red-black tree implementations.
This commit is contained in:
Jason Evans
2016-02-23 18:27:24 -08:00
parent 3417a304cc
commit ae45142adc
2 changed files with 8 additions and 13 deletions

View File

@@ -175,7 +175,6 @@ struct arena_chunk_map_misc_s {
arena_run_t run;
};
};
typedef rb_tree(arena_chunk_map_misc_t) arena_avail_tree_t;
typedef rb_tree(arena_chunk_map_misc_t) arena_run_tree_t;
#endif /* JEMALLOC_ARENA_STRUCTS_A */
@@ -461,7 +460,7 @@ struct arena_s {
* Quantized address-ordered trees of this arena's available runs. The
* trees are used for first-best-fit run allocation.
*/
arena_avail_tree_t runs_avail[1]; /* Dynamically sized. */
arena_run_tree_t runs_avail[1]; /* Dynamically sized. */
};
/* Used in conjunction with tsd for fast arena-related context lookup. */