mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
Ehooks: remove arena_ind parameter.
This lives within the ehooks_t now, so that callers don't need to know it.
This commit is contained in:
committed by
David Goldblatt
parent
57fe99d4be
commit
9cad5639ff
12
src/base.c
12
src/base.c
@@ -44,7 +44,7 @@ base_map(tsdn_t *tsdn, ehooks_t *ehooks, unsigned ind, size_t size) {
|
||||
}
|
||||
} else {
|
||||
addr = ehooks_alloc(tsdn, ehooks, NULL, size, alignment, &zero,
|
||||
&commit, ind);
|
||||
&commit);
|
||||
}
|
||||
|
||||
return addr;
|
||||
@@ -79,18 +79,16 @@ base_unmap(tsdn_t *tsdn, ehooks_t *ehooks, unsigned ind, void *addr,
|
||||
/* Nothing worked. This should never happen. */
|
||||
not_reached();
|
||||
} else {
|
||||
if (!ehooks_dalloc(tsdn, ehooks, addr, size, true, ind)) {
|
||||
if (!ehooks_dalloc(tsdn, ehooks, addr, size, true)) {
|
||||
goto label_done;
|
||||
}
|
||||
if (!ehooks_decommit(tsdn, ehooks, addr, size, 0, size, ind)) {
|
||||
if (!ehooks_decommit(tsdn, ehooks, addr, size, 0, size)) {
|
||||
goto label_done;
|
||||
}
|
||||
if (!ehooks_purge_forced(tsdn, ehooks, addr, size, 0, size,
|
||||
ind)) {
|
||||
if (!ehooks_purge_forced(tsdn, ehooks, addr, size, 0, size)) {
|
||||
goto label_done;
|
||||
}
|
||||
if (!ehooks_purge_lazy(tsdn, ehooks, addr, size, 0, size,
|
||||
ind)) {
|
||||
if (!ehooks_purge_lazy(tsdn, ehooks, addr, size, 0, size)) {
|
||||
goto label_done;
|
||||
}
|
||||
/* Nothing worked. That's the application's problem. */
|
||||
|
||||
Reference in New Issue
Block a user