Rename edata_tree_t -> edata_avail_t.

This isn't a tree any more, and it mildly irritates me any time I see it.
This commit is contained in:
David Goldblatt 2020-11-04 16:00:52 -08:00 committed by David Goldblatt
parent 95f0a77fde
commit b4c37a6e81
3 changed files with 4 additions and 4 deletions

View File

@ -69,7 +69,7 @@ struct edata_map_info_s {
/* Extent (span of pages). Use accessor functions for e_* fields. */ /* Extent (span of pages). Use accessor functions for e_* fields. */
typedef struct edata_s edata_t; typedef struct edata_s edata_t;
typedef ph(edata_t) edata_tree_t; typedef ph(edata_t) edata_avail_t;
typedef ph(edata_t) edata_heap_t; typedef ph(edata_t) edata_heap_t;
typedef ph(edata_t) edata_age_heap_t; typedef ph(edata_t) edata_age_heap_t;
struct edata_s { struct edata_s {
@ -723,7 +723,7 @@ edata_age_comp(const edata_t *a, const edata_t *b) {
return edata_snad_comp(a, b); return edata_snad_comp(a, b);
} }
ph_proto(, edata_avail_, edata_tree_t, edata_t) ph_proto(, edata_avail_, edata_avail_t, edata_t)
ph_proto(, edata_heap_, edata_heap_t, edata_t) ph_proto(, edata_heap_, edata_heap_t, edata_t)
ph_proto(, edata_age_heap_, edata_age_heap_t, edata_t); ph_proto(, edata_age_heap_, edata_age_heap_t, edata_t);

View File

@ -21,7 +21,7 @@
typedef struct edata_cache_s edata_cache_t; typedef struct edata_cache_s edata_cache_t;
struct edata_cache_s { struct edata_cache_s {
edata_tree_t avail; edata_avail_t avail;
atomic_zu_t count; atomic_zu_t count;
malloc_mutex_t mtx; malloc_mutex_t mtx;
base_t *base; base_t *base;

View File

@ -1,7 +1,7 @@
#include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h" #include "jemalloc/internal/jemalloc_internal_includes.h"
ph_gen(, edata_avail_, edata_tree_t, edata_t, ph_link, ph_gen(, edata_avail_, edata_avail_t, edata_t, ph_link,
edata_esnead_comp) edata_esnead_comp)
ph_gen(, edata_heap_, edata_heap_t, edata_t, ph_link, edata_snad_comp) ph_gen(, edata_heap_, edata_heap_t, edata_t, ph_link, edata_snad_comp)
ph_gen(, edata_age_heap_, edata_age_heap_t, edata_t, ph_link, edata_age_comp) ph_gen(, edata_age_heap_, edata_age_heap_t, edata_t, ph_link, edata_age_comp)