summaryrefslogtreecommitdiff
path: root/src/arena.c
diff options
context:
space:
mode:
authorPark Ju Hyung <qkrwngud825@gmail.com>2019-10-14 06:19:00 +0900
committerJuhyung Park <qkrwngud825@gmail.com>2022-02-18 22:46:19 +0900
commitff690d8809c6d57a566164b13fccfb7d87422b16 (patch)
tree3466f38bde14c29f3d8c080063e881ef8ec06967 /src/arena.c
parent9666f7a11b0ba711e6fb1d80bb94de4220c2d944 (diff)
jemalloc: remove THP support
This is not explored on Android properly and no one should use it until proper scientific testing. Moreover, THP is broken with all recent Qualcomm devices due to speculative page faults. Change-Id: I1c1e4f296c7895f5288cdb816f42340ea85826b4 Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Diffstat (limited to 'src/arena.c')
-rw-r--r--src/arena.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/arena.c b/src/arena.c
index 54842421..8b138c29 100644
--- a/src/arena.c
+++ b/src/arena.c
@@ -90,9 +90,9 @@ arena_stats_merge(tsdn_t *tsdn, arena_t *arena, unsigned *nthreads,
arena_basic_stats_merge(tsdn, arena, nthreads, dss, dirty_decay_ms,
muzzy_decay_ms, nactive, ndirty, nmuzzy);
- size_t base_allocated, base_resident, base_mapped, metadata_thp;
+ size_t base_allocated, base_resident, base_mapped;
base_stats_get(tsdn, arena->base, &base_allocated, &base_resident,
- &base_mapped, &metadata_thp);
+ &base_mapped);
arena_stats_lock(tsdn, &arena->stats);
@@ -127,7 +127,6 @@ arena_stats_merge(tsdn_t *tsdn, arena_t *arena, unsigned *nthreads,
arena_stats_accum_zu(&astats->base, base_allocated);
arena_stats_accum_zu(&astats->internal, arena_internal_get(arena));
- arena_stats_accum_zu(&astats->metadata_thp, metadata_thp);
arena_stats_accum_zu(&astats->resident, base_resident +
(((atomic_load_zu(&arena->nactive, ATOMIC_RELAXED) +
extents_npages_get(&arena->extents_dirty) +