| 343 | } |
| 344 | |
| 345 | static void |
| 346 | arena_new_create_background_thread(tsdn_t *tsdn, unsigned ind) { |
| 347 | if (ind == 0) { |
| 348 | return; |
| 349 | } |
| 350 | /* |
| 351 | * Avoid creating a new background thread just for the huge arena, which |
| 352 | * purges eagerly by default. |
| 353 | */ |
| 354 | if (have_background_thread && !arena_is_huge(ind)) { |
| 355 | if (background_thread_create(tsdn_tsd(tsdn), ind)) { |
| 356 | malloc_printf("<jemalloc>: error in background thread " |
| 357 | "creation for arena %u. Abort.\n", ind); |
| 358 | abort(); |
| 359 | } |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | arena_t * |
| 364 | arena_init(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks) { |
no test coverage detected