summaryrefslogtreecommitdiff
path: root/include/jemalloc/internal/base_structs.h
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-11-07 19:40:38 -0800
committerQi Wang <interwq@gmail.com>2017-11-09 16:14:12 -0800
commitcb3b72b9756d124565ed12e005065ad6f0769568 (patch)
tree7c20eeecf816f3f9bc6a0f91ef7b67e7b81f6b25 /include/jemalloc/internal/base_structs.h
parentb5d071c26697813bcceae320ba88dee2a2a73e51 (diff)
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/base_structs.h')
-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 b5421693..2102247a 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