| 260 | } |
| 261 | |
| 262 | static void |
| 263 | prof_recent_alloc_assert_count(tsd_t *tsd) { |
| 264 | malloc_mutex_assert_owner(tsd_tsdn(tsd), &prof_recent_alloc_mtx); |
| 265 | if (!config_debug) { |
| 266 | return; |
| 267 | } |
| 268 | ssize_t count = 0; |
| 269 | prof_recent_t *n; |
| 270 | ql_foreach(n, &prof_recent_alloc_list, link) { |
| 271 | ++count; |
| 272 | } |
| 273 | assert(count == prof_recent_alloc_count); |
| 274 | assert(prof_recent_alloc_max_get(tsd) == -1 || |
| 275 | count <= prof_recent_alloc_max_get(tsd)); |
| 276 | } |
| 277 | |
| 278 | void |
| 279 | prof_recent_alloc(tsd_t *tsd, edata_t *edata, size_t size, size_t usize) { |
no test coverage detected