Extent -> Eset: Move extent fit functions.

This commit is contained in:
David T. Goldblatt
2019-09-21 09:36:22 -07:00
committed by David Goldblatt
parent 1210af9a4e
commit 77bbb35a92
3 changed files with 119 additions and 120 deletions

View File

@@ -72,5 +72,11 @@ size_t eset_nbytes_get(eset_t *eset, pszind_t ind);
void eset_insert_locked(tsdn_t *tsdn, eset_t *eset, extent_t *extent);
void eset_remove_locked(tsdn_t *tsdn, eset_t *eset, extent_t *extent);
/*
* Select an extent from this eset of the given size and alignment. Returns
* null if no such item could be found.
*/
extent_t *eset_fit_locked(tsdn_t *tsdn, eset_t *eset, size_t esize,
size_t alignment);
#endif /* JEMALLOC_INTERNAL_ESET_H */