summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Séchet <deadalnix@gmail.com>2023-03-10 09:12:15 +0000
committerQi Wang <interwq@gmail.com>2023-03-10 11:25:47 -0800
commitf743690739299cb1e72852744bdd79443b264be0 (patch)
treee677f42c9f6bd3d69d0a6d8062c96b1fa31f91a7
parent4edea8eb8e879bf4d89a3ed418bf90bb8e09d93b (diff)
downloadjemalloc-f743690739299cb1e72852744bdd79443b264be0.tar.gz
Remove unused mutex from hpa_central
-rw-r--r--include/jemalloc/internal/hpa.h5
-rw-r--r--src/hpa.c6
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.
diff --git a/src/hpa.c b/src/hpa.c
index 7e2aeba0..8ebb2db2 100644
--- a/src/hpa.c
+++ b/src/hpa.c
@@ -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(&central->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;