mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
hpdata: Use addr/size instead of begin/npages.
This is easier for the users of the hpdata.
This commit is contained in:
parent
5228d869ee
commit
0971e1e4e3
3 changed files with 20 additions and 20 deletions
|
|
@ -133,7 +133,7 @@ void hpdata_init(hpdata_t *hpdata, void *addr, uint64_t age);
|
|||
* Given an hpdata which can serve an allocation request, pick and reserve an
|
||||
* offset within that allocation.
|
||||
*/
|
||||
size_t hpdata_reserve_alloc(hpdata_t *hpdata, size_t npages);
|
||||
void hpdata_unreserve(hpdata_t *hpdata, size_t start, size_t npages);
|
||||
void *hpdata_reserve_alloc(hpdata_t *hpdata, size_t sz);
|
||||
void hpdata_unreserve(hpdata_t *hpdata, void *begin, size_t sz);
|
||||
|
||||
#endif /* JEMALLOC_INTERNAL_HPDATA_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue