diff options
author | Amaury Séchet <deadalnix@gmail.com> | 2023-03-10 09:12:15 +0000 |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2023-03-10 11:25:47 -0800 |
commit | f743690739299cb1e72852744bdd79443b264be0 (patch) | |
tree | e677f42c9f6bd3d69d0a6d8062c96b1fa31f91a7 | |
parent | 4edea8eb8e879bf4d89a3ed418bf90bb8e09d93b (diff) | |
download | jemalloc-f743690739299cb1e72852744bdd79443b264be0.tar.gz |
Remove unused mutex from hpa_central
-rw-r--r-- | include/jemalloc/internal/hpa.h | 5 | ||||
-rw-r--r-- | src/hpa.c | 6 |
2 files changed, 1 insertions, 10 deletions
diff --git a/include/jemalloc/internal/hpa.h b/include/jemalloc/internal/hpa.h index f3562853..0b3c76c6 100644 --- a/include/jemalloc/internal/hpa.h +++ b/include/jemalloc/internal/hpa.h @@ -10,11 +10,6 @@ typedef struct hpa_central_s hpa_central_t; struct hpa_central_s { /* - * The mutex guarding most of the operations on the central data - * structure. - */ - malloc_mutex_t mtx; - /* * Guards expansion of eden. We separate this from the regular mutex so * that cheaper operations can still continue while we're doing the OS * call. @@ -68,11 +68,7 @@ hpa_central_init(hpa_central_t *central, base_t *base, const hpa_hooks_t *hooks) if (err) { return true; } - err = malloc_mutex_init(¢ral->mtx, "hpa_central", - WITNESS_RANK_HPA_CENTRAL, malloc_mutex_rank_exclusive); - if (err) { - return true; - } + central->base = base; central->eden = NULL; central->eden_len = 0; |