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

@@ -22,8 +22,6 @@
extern size_t opt_lg_chunk;
extern const char *opt_dss;
extern rtree_t chunks_rtree;
extern size_t chunksize;
extern size_t chunksize_mask; /* (chunksize - 1). */
extern size_t chunk_npages;
@@ -67,19 +65,6 @@ void chunk_postfork_child(tsdn_t *tsdn);
/******************************************************************************/
#ifdef JEMALLOC_H_INLINES
#ifndef JEMALLOC_ENABLE_INLINE
extent_t *chunk_lookup(tsdn_t *tsdn, const void *chunk, bool dependent);
#endif
#if (defined(JEMALLOC_ENABLE_INLINE) || defined(JEMALLOC_CHUNK_C_))
JEMALLOC_INLINE extent_t *
chunk_lookup(tsdn_t *tsdn, const void *ptr, bool dependent)
{
return (rtree_read(tsdn, &chunks_rtree, (uintptr_t)ptr, dependent));
}
#endif
#endif /* JEMALLOC_H_INLINES */
/******************************************************************************/