mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-25 01:57:20 +03:00
psset: Add insert/remove functions.
These will allow us to (for instance) move pageslabs from a psset dedicated to not-yet-hugeified pages to one dedicated to hugeified ones.
This commit is contained in:
parent
d438296b1f
commit
d0a991d47b
3 changed files with 144 additions and 42 deletions
|
|
@ -59,6 +59,9 @@ struct psset_s {
|
|||
|
||||
void psset_init(psset_t *psset);
|
||||
|
||||
void psset_insert(psset_t *psset, edata_t *ps);
|
||||
void psset_remove(psset_t *psset, edata_t *ps);
|
||||
|
||||
/*
|
||||
* Tries to obtain a chunk from an existing pageslab already in the set.
|
||||
* Returns true on failure.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue