| 381 | } |
| 382 | |
| 383 | static void |
| 384 | arena_large_malloc_stats_update(tsdn_t *tsdn, arena_t *arena, size_t usize) { |
| 385 | szind_t index, hindex; |
| 386 | |
| 387 | cassert(config_stats); |
| 388 | |
| 389 | if (usize < SC_LARGE_MINCLASS) { |
| 390 | usize = SC_LARGE_MINCLASS; |
| 391 | } |
| 392 | index = sz_size2index(usize); |
| 393 | hindex = (index >= SC_NBINS) ? index - SC_NBINS : 0; |
| 394 | |
| 395 | arena_stats_add_u64(tsdn, &arena->stats, |
| 396 | &arena->stats.lstats[hindex].nmalloc, 1); |
| 397 | } |
| 398 | |
| 399 | static void |
| 400 | arena_large_dalloc_stats_update(tsdn_t *tsdn, arena_t *arena, size_t usize) { |
no test coverage detected