mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-03 09:00:30 +03:00
PA->PAC: Move in extent_sn.
This commit is contained in:
parent
7391382349
commit
dee5d1c42d
7 changed files with 16 additions and 17 deletions
6
src/pa.c
6
src/pa.c
|
|
@ -35,7 +35,6 @@ pa_shard_init(tsdn_t *tsdn, pa_shard_t *shard, emap_t *emap, base_t *base,
|
|||
return true;
|
||||
}
|
||||
|
||||
atomic_store_zu(&shard->extent_sn_next, 0, ATOMIC_RELAXED);
|
||||
atomic_store_zu(&shard->nactive, 0, ATOMIC_RELAXED);
|
||||
|
||||
shard->stats_mtx = stats_mtx;
|
||||
|
|
@ -79,11 +78,6 @@ pa_shard_destroy_retained(tsdn_t *tsdn, pa_shard_t *shard) {
|
|||
}
|
||||
}
|
||||
|
||||
size_t
|
||||
pa_shard_extent_sn_next(pa_shard_t *shard) {
|
||||
return atomic_fetch_add_zu(&shard->extent_sn_next, 1, ATOMIC_RELAXED);
|
||||
}
|
||||
|
||||
static bool
|
||||
pa_shard_may_have_muzzy(pa_shard_t *shard) {
|
||||
return pac_muzzy_decay_ms_get(&shard->pac) != 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue