mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 09:03:33 +03:00
PA: Move mapped into pa stats.
This commit is contained in:
parent
6ca918d0cf
commit
70d12ffa05
7 changed files with 44 additions and 35 deletions
3
src/pa.c
3
src/pa.c
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
bool
|
||||
pa_shard_init(tsdn_t *tsdn, pa_shard_t *shard, base_t *base, unsigned ind,
|
||||
pa_shard_stats_t *stats) {
|
||||
pa_shard_stats_t *stats, malloc_mutex_t *stats_mtx) {
|
||||
/* This will change eventually, but for now it should hold. */
|
||||
assert(base_ind_get(base) == ind);
|
||||
/*
|
||||
|
|
@ -44,6 +44,7 @@ pa_shard_init(tsdn_t *tsdn, pa_shard_t *shard, base_t *base, unsigned ind,
|
|||
|
||||
atomic_store_zu(&shard->extent_sn_next, 0, ATOMIC_RELAXED);
|
||||
|
||||
shard->stats_mtx = stats_mtx;
|
||||
shard->stats = stats;
|
||||
memset(shard->stats, 0, sizeof(*shard->stats));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue