summaryrefslogtreecommitdiffstats
path: root/include/jemalloc/internal
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-11-08 03:40:38 (GMT)
committerQi Wang <interwq@gmail.com>2017-11-10 00:14:12 (GMT)
commitcb3b72b9756d124565ed12e005065ad6f0769568 (patch)
tree7c20eeecf816f3f9bc6a0f91ef7b67e7b81f6b25 /include/jemalloc/internal
parentb5d071c26697813bcceae320ba88dee2a2a73e51 (diff)
downloadjemalloc-cb3b72b9756d124565ed12e005065ad6f0769568.zip
jemalloc-cb3b72b9756d124565ed12e005065ad6f0769568.tar.gz
jemalloc-cb3b72b9756d124565ed12e005065ad6f0769568.tar.bz2
Fix base allocator THP auto mode locking and stats.
Added proper synchronization for switching to using THP in auto mode. Also fixed stats for number of THPs used.
Diffstat (limited to 'include/jemalloc/internal')
-rw-r--r--include/jemalloc/internal/base_structs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/jemalloc/internal/base_structs.h b/include/jemalloc/internal/base_structs.h
index b542169..2102247 100644
--- a/include/jemalloc/internal/base_structs.h
+++ b/include/jemalloc/internal/base_structs.h
@@ -30,6 +30,8 @@ struct base_s {
/* Protects base_alloc() and base_stats_get() operations. */
malloc_mutex_t mtx;
+ /* Using THP when true (metadata_thp auto mode). */
+ bool auto_thp_switched;
/*
* Most recent size class in the series of increasingly large base
* extents. Logarithmic spacing between subsequent allocations ensures