mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-16 18:06:22 +03:00
Background thread: take base as a parameter.
This commit is contained in:
parent
29436fa056
commit
162c2bcf31
3 changed files with 5 additions and 4 deletions
|
|
@ -895,7 +895,7 @@ background_thread_boot0(void) {
|
|||
}
|
||||
|
||||
bool
|
||||
background_thread_boot1(tsdn_t *tsdn) {
|
||||
background_thread_boot1(tsdn_t *tsdn, base_t *base) {
|
||||
#ifdef JEMALLOC_BACKGROUND_THREAD
|
||||
assert(have_background_thread);
|
||||
assert(narenas_total_get() > 0);
|
||||
|
|
@ -914,7 +914,7 @@ background_thread_boot1(tsdn_t *tsdn) {
|
|||
}
|
||||
|
||||
background_thread_info = (background_thread_info_t *)base_alloc(tsdn,
|
||||
b0get(), opt_max_background_threads *
|
||||
base, opt_max_background_threads *
|
||||
sizeof(background_thread_info_t), CACHELINE);
|
||||
if (background_thread_info == NULL) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue