mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 00:23:33 +03:00
Make single-TU internal helpers static; remove dead hpa_expand/hpa_shrink/pac_reset
This commit is contained in:
parent
5bc8d6e9e2
commit
aae199f40f
10 changed files with 5 additions and 41 deletions
|
|
@ -81,7 +81,7 @@ pa_shard_nactive(const pa_shard_t *shard) {
|
|||
return atomic_load_zu(&shard->nactive, ATOMIC_RELAXED);
|
||||
}
|
||||
|
||||
size_t
|
||||
static size_t
|
||||
pa_shard_ndirty(const pa_shard_t *shard) {
|
||||
size_t ndirty = ecache_npages_get(&shard->pac.ecache_dirty);
|
||||
if (shard->ever_used_hpa) {
|
||||
|
|
@ -90,7 +90,7 @@ pa_shard_ndirty(const pa_shard_t *shard) {
|
|||
return ndirty;
|
||||
}
|
||||
|
||||
size_t
|
||||
static size_t
|
||||
pa_shard_nmuzzy(const pa_shard_t *shard) {
|
||||
return ecache_npages_get(&shard->pac.ecache_muzzy);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue