mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 17:17:19 +03:00
add extent_nfree_sub
This commit is contained in:
parent
4b82872ebf
commit
17aa470760
2 changed files with 7 additions and 1 deletions
|
|
@ -283,10 +283,10 @@ arena_slab_reg_alloc_batch(extent_t *slab, const bin_info_t *bin_info,
|
|||
regind = bitmap_sfu(slab_data->bitmap, &bin_info->bitmap_info);
|
||||
ret = (void *)((uintptr_t)extent_addr_get(slab) +
|
||||
(uintptr_t)(bin_info->reg_size * regind));
|
||||
extent_nfree_dec(slab);
|
||||
|
||||
*(ptrs + i) = ret;
|
||||
}
|
||||
extent_nfree_sub(slab, cnt);
|
||||
}
|
||||
|
||||
#ifndef JEMALLOC_JET
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue