Geom_grow: Don't take tsdn at init.
It's never used.
This commit is contained in:
parent
ffe552223c
commit
c57494879f
@ -48,7 +48,7 @@ geom_grow_size_commit(geom_grow_t *geom_grow, pszind_t skip) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool geom_grow_init(tsdn_t *tsdn, geom_grow_t *geom_grow);
|
bool geom_grow_init(geom_grow_t *geom_grow);
|
||||||
void geom_grow_prefork(tsdn_t *tsdn, geom_grow_t *geom_grow);
|
void geom_grow_prefork(tsdn_t *tsdn, geom_grow_t *geom_grow);
|
||||||
void geom_grow_postfork_parent(tsdn_t *tsdn, geom_grow_t *geom_grow);
|
void geom_grow_postfork_parent(tsdn_t *tsdn, geom_grow_t *geom_grow);
|
||||||
void geom_grow_postfork_child(tsdn_t *tsdn, geom_grow_t *geom_grow);
|
void geom_grow_postfork_child(tsdn_t *tsdn, geom_grow_t *geom_grow);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#include "jemalloc/internal/jemalloc_internal_includes.h"
|
#include "jemalloc/internal/jemalloc_internal_includes.h"
|
||||||
|
|
||||||
bool
|
bool
|
||||||
geom_grow_init(tsdn_t *tsdn, geom_grow_t *geom_grow) {
|
geom_grow_init(geom_grow_t *geom_grow) {
|
||||||
geom_grow->next = sz_psz2ind(HUGEPAGE);
|
geom_grow->next = sz_psz2ind(HUGEPAGE);
|
||||||
geom_grow->limit = sz_psz2ind(SC_LARGE_MAXCLASS);
|
geom_grow->limit = sz_psz2ind(SC_LARGE_MAXCLASS);
|
||||||
if (malloc_mutex_init(&geom_grow->mtx, "extent_grow",
|
if (malloc_mutex_init(&geom_grow->mtx, "extent_grow",
|
||||||
|
@ -68,7 +68,7 @@ pac_init(tsdn_t *tsdn, pac_t *pac, base_t *base, emap_t *emap,
|
|||||||
ind, /* delay_coalesce */ false)) {
|
ind, /* delay_coalesce */ false)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (geom_grow_init(tsdn, &pac->geom_grow)) {
|
if (geom_grow_init(&pac->geom_grow)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (decay_init(&pac->decay_dirty, cur_time, dirty_decay_ms)) {
|
if (decay_init(&pac->decay_dirty, cur_time, dirty_decay_ms)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user