mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-21 11:25:39 +03:00
hpdata: Return the number of pages to be purged.
We'll use this in the next commit.
This commit is contained in:
parent
9fd9c876bb
commit
dc886e5608
3 changed files with 13 additions and 5 deletions
|
|
@ -363,8 +363,11 @@ struct hpdata_purge_state_s {
|
|||
* Once you begin purging, you have to follow through and call hpdata_purge_next
|
||||
* until you're done, and then end. Allocating out of an hpdata undergoing
|
||||
* purging is not allowed.
|
||||
*
|
||||
* Returns the number of pages that will be purged.
|
||||
*/
|
||||
void hpdata_purge_begin(hpdata_t *hpdata, hpdata_purge_state_t *purge_state);
|
||||
size_t hpdata_purge_begin(hpdata_t *hpdata, hpdata_purge_state_t *purge_state);
|
||||
|
||||
/*
|
||||
* If there are more extents to purge, sets *r_purge_addr and *r_purge_size to
|
||||
* true, and returns true. Otherwise, returns false to indicate that we're
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue