mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
s/chunk_lookup/extent_lookup/g, s/chunks_rtree/extents_rtree/g
This commit is contained in:
16
src/extent.c
16
src/extent.c
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user