mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-24 08:03:32 +03:00
Rtree: take the base allocator as a parameter.
This facilitates better testing by avoiding mixing of the "real" base with the base used by the rtree under test.
This commit is contained in:
parent
7013716aaa
commit
a0c1f4ac57
8 changed files with 45 additions and 165 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, bool zeroed) {
|
||||
emap_init(emap_t *emap, base_t *base, bool zeroed) {
|
||||
bool err;
|
||||
err = rtree_new(&emap->rtree, zeroed);
|
||||
err = rtree_new(&emap->rtree, base, zeroed);
|
||||
if (err) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue