diff options
author | Qi Wang <interwq@gwu.edu> | 2017-11-07 19:40:38 -0800 |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2017-11-09 16:14:12 -0800 |
commit | cb3b72b9756d124565ed12e005065ad6f0769568 (patch) | |
tree | 7c20eeecf816f3f9bc6a0f91ef7b67e7b81f6b25 /include/jemalloc | |
parent | b5d071c26697813bcceae320ba88dee2a2a73e51 (diff) | |
download | platform_external_jemalloc_new-cb3b72b9756d124565ed12e005065ad6f0769568.tar.gz platform_external_jemalloc_new-cb3b72b9756d124565ed12e005065ad6f0769568.tar.bz2 platform_external_jemalloc_new-cb3b72b9756d124565ed12e005065ad6f0769568.zip |
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')
-rw-r--r-- | include/jemalloc/internal/base_structs.h | 2 |
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 |