Emap: Move extent boundary registration in.

This commit is contained in:
David Goldblatt
2020-01-30 12:40:07 -08:00
committed by David Goldblatt
parent ca21ce4071
commit d05b61db4a
3 changed files with 26 additions and 7 deletions

View File

@@ -35,4 +35,12 @@ void emap_rtree_write_acquired(tsdn_t *tsdn, emap_t *emap,
rtree_leaf_elm_t *elm_a, rtree_leaf_elm_t *elm_b, edata_t *edata,
szind_t szind, bool slab);
/*
* Associate the given edata with its beginning and end address, setting the
* szind and slab info appropriately.
* Returns true on error (i.e. resource exhaustion).
*/
bool emap_register_boundary(tsdn_t *tsdn, emap_t *emap, rtree_ctx_t *rtree_ctx,
edata_t *edata, szind_t szind, bool slab);
#endif /* JEMALLOC_INTERNAL_EMAP_H */