mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 05:03:10 +00:00
Remove unnecessary parameters for cache_bin_postincrement.
This commit is contained in:
@@ -56,8 +56,7 @@ cache_bin_preincrement(cache_bin_info_t *infos, szind_t ninfos, void *alloc,
|
||||
}
|
||||
|
||||
void
|
||||
cache_bin_postincrement(cache_bin_info_t *infos, szind_t ninfos, void *alloc,
|
||||
size_t *cur_offset) {
|
||||
cache_bin_postincrement(void *alloc, size_t *cur_offset) {
|
||||
*(uintptr_t *)((byte_t *)alloc + *cur_offset) =
|
||||
cache_bin_trailing_junk;
|
||||
*cur_offset += sizeof(void *);
|
||||
|
||||
@@ -698,8 +698,7 @@ tcache_init(tsd_t *tsd, tcache_slow_t *tcache_slow, tcache_t *tcache,
|
||||
assert(tcache_small_bin_disabled(i, cache_bin));
|
||||
}
|
||||
|
||||
cache_bin_postincrement(tcache_bin_info, nhbins, mem,
|
||||
&cur_offset);
|
||||
cache_bin_postincrement(mem, &cur_offset);
|
||||
/* Sanity check that the whole stack is used. */
|
||||
assert(cur_offset == tcache_bin_alloc_size);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user