diff options
author | Jason Evans <jasone@canonware.com> | 2017-02-13 02:50:53 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2017-02-16 17:39:46 (GMT) |
commit | ab25d3c987ddb32846760cc08af8db22a6389c02 (patch) | |
tree | bdd5e8bdd9817b44b651e7368890e9b1d44f55d1 /include/jemalloc | |
parent | 6b5cba41916549f1aa37adac45659b60293d9495 (diff) | |
download | jemalloc-ab25d3c987ddb32846760cc08af8db22a6389c02.zip jemalloc-ab25d3c987ddb32846760cc08af8db22a6389c02.tar.gz jemalloc-ab25d3c987ddb32846760cc08af8db22a6389c02.tar.bz2 |
Synchronize arena->tcache_ql with arena->tcache_ql_mtx.
This replaces arena->lock synchronization.
Diffstat (limited to 'include/jemalloc')
-rw-r--r-- | include/jemalloc/internal/arena_structs_b.h | 3 | ||||
-rw-r--r-- | include/jemalloc/internal/witness_types.h | 15 |
2 files changed, 10 insertions, 8 deletions
diff --git a/include/jemalloc/internal/arena_structs_b.h b/include/jemalloc/internal/arena_structs_b.h index 04e859b..132a328 100644 --- a/include/jemalloc/internal/arena_structs_b.h +++ b/include/jemalloc/internal/arena_structs_b.h @@ -135,9 +135,10 @@ struct arena_s { * Stats from these are merged incrementally, and at exit if * opt_stats_print is enabled. * - * Synchronization: lock. + * Synchronization: tcache_ql_mtx. */ ql_head(tcache_t) tcache_ql; + malloc_mutex_t tcache_ql_mtx; /* Synchronization: internal. */ prof_accum_t prof_accum; diff --git a/include/jemalloc/internal/witness_types.h b/include/jemalloc/internal/witness_types.h index 3fd7998..7957b41 100644 --- a/include/jemalloc/internal/witness_types.h +++ b/include/jemalloc/internal/witness_types.h @@ -35,13 +35,14 @@ typedef int witness_comp_t (const witness_t *, void *, const witness_t *, #define WITNESS_RANK_CORE 9U #define WITNESS_RANK_ARENA 9U -#define WITNESS_RANK_EXTENTS 10U -#define WITNESS_RANK_EXTENT_FREELIST 11U - -#define WITNESS_RANK_RTREE_ELM 12U -#define WITNESS_RANK_RTREE 13U -#define WITNESS_RANK_BASE 14U -#define WITNESS_RANK_ARENA_LARGE 15U +#define WITNESS_RANK_TCACHE_QL 10U +#define WITNESS_RANK_EXTENTS 11U +#define WITNESS_RANK_EXTENT_FREELIST 12U + +#define WITNESS_RANK_RTREE_ELM 13U +#define WITNESS_RANK_RTREE 14U +#define WITNESS_RANK_BASE 15U +#define WITNESS_RANK_ARENA_LARGE 16U #define WITNESS_RANK_LEAF 0xffffffffU #define WITNESS_RANK_ARENA_BIN WITNESS_RANK_LEAF |