aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Watson <davejwatson@fb.com>2017-09-26 17:22:01 -0700
committerDave Watson <davejwatson@fb.com>2017-10-04 12:23:03 -0700
commit7c6c99b8295829580c506067495a23c07436e266 (patch)
tree15d396ca9eb04548535bd70e6b3531da979c0f4b /src
parent8a7ee3014cea09e13e605bf47c11943df5a5eb2b (diff)
downloadplatform_external_jemalloc_new-7c6c99b8295829580c506067495a23c07436e266.tar.gz
platform_external_jemalloc_new-7c6c99b8295829580c506067495a23c07436e266.tar.bz2
platform_external_jemalloc_new-7c6c99b8295829580c506067495a23c07436e266.zip
Use ph instead of rb tree for extents_avail_
There does not seem to be any overlap between usage of extent_avail and extent_heap, so we can use the same hook. The only remaining usage of rb trees is in the profiling code, which has some 'interesting' iteration constraints. Fixes #888
Diffstat (limited to 'src')
-rw-r--r--src/extent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extent.c b/src/extent.c
index 3f1c76fd..221c80c0 100644
--- a/src/extent.c
+++ b/src/extent.c
@@ -117,7 +117,7 @@ static void extent_record(tsdn_t *tsdn, arena_t *arena,
/******************************************************************************/
-rb_gen(UNUSED, extent_avail_, extent_tree_t, extent_t, rb_link,
+ph_gen(UNUSED, extent_avail_, extent_tree_t, extent_t, ph_link,
extent_esnead_comp)
typedef enum {