mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Remove unused mutex from hpa_central
This commit is contained in:
parent
4edea8eb8e
commit
f743690739
2 changed files with 1 additions and 10 deletions
|
|
@ -9,11 +9,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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue