s/chunk_lookup/extent_lookup/g, s/chunks_rtree/extents_rtree/g

This commit is contained in:
Jason Evans
2016-06-01 12:10:39 -07:00
parent 4a55daa363
commit 0c4932eb1e
8 changed files with 55 additions and 44 deletions

View File

@@ -1,6 +1,11 @@
#define JEMALLOC_EXTENT_C_
#include "jemalloc/internal/jemalloc_internal.h"
/******************************************************************************/
/* Data. */
rtree_t extents_rtree;
/******************************************************************************/
extent_t *
@@ -112,3 +117,14 @@ extent_ad_comp(const extent_t *a, const extent_t *b)
/* Generate pairing heap functions. */
ph_gen(, extent_heap_, extent_heap_t, extent_t, ph_link, extent_ad_comp)
bool
extent_boot(void)
{
if (rtree_new(&extents_rtree, (unsigned)((ZU(1) << (LG_SIZEOF_PTR+3)) -
LG_PAGE)))
return (true);
return (false);
}