mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-07 06:17:18 +03:00
Cache bin: Add a debug method for init checking.
This commit is contained in:
parent
370c1ea007
commit
6a7aa46ef7
3 changed files with 14 additions and 2 deletions
|
|
@ -102,3 +102,8 @@ cache_bin_init(cache_bin_t *bin, cache_bin_info_t *info, void *alloc,
|
|||
assert(cache_bin_ncached_get(bin, info) == 0);
|
||||
assert(cache_bin_empty_position_get(bin, info) == empty_position);
|
||||
}
|
||||
|
||||
bool
|
||||
cache_bin_still_zero_initialized(cache_bin_t *bin) {
|
||||
return bin->cur_ptr.ptr == NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue