Move relevant index into the ehooks_t itself.

It's always passed into the ehooks; keeping it colocated lets us avoid passing
the arena everywhere.
This commit is contained in:
David Goldblatt 2019-12-13 10:09:57 -08:00 committed by David Goldblatt
parent c792f3e4ab
commit 57fe99d4be
5 changed files with 19 additions and 10 deletions

View file

@ -4,7 +4,9 @@
#include "jemalloc/internal/ehooks.h"
#include "jemalloc/internal/extent_mmap.h"
void ehooks_init(ehooks_t *ehooks, extent_hooks_t *extent_hooks) {
void
ehooks_init(ehooks_t *ehooks, extent_hooks_t *extent_hooks, unsigned ind) {
ehooks->ind = ind;
ehooks_set_extent_hooks_ptr(ehooks, extent_hooks);
}