mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-24 08:03:32 +03:00
Emap: Take (and propagate) a zeroed parameter.
Rtree needs this, and we should really treat them similarly.
This commit is contained in:
parent
182192f83c
commit
7013716aaa
3 changed files with 5 additions and 4 deletions
|
|
@ -22,9 +22,9 @@ enum emap_lock_result_e {
|
|||
typedef enum emap_lock_result_e emap_lock_result_t;
|
||||
|
||||
bool
|
||||
emap_init(emap_t *emap) {
|
||||
emap_init(emap_t *emap, bool zeroed) {
|
||||
bool err;
|
||||
err = rtree_new(&emap->rtree, true);
|
||||
err = rtree_new(&emap->rtree, zeroed);
|
||||
if (err) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue