Lines Matching refs:mstats
154 struct malloc_stats mstats; member
211 if (ctx->poolset.totalloc > ctx->mstats.max_allocated) in raw_malloc_return_hook()
212 ctx->mstats.max_allocated = ctx->poolset.totalloc; in raw_malloc_return_hook()
215 ctx->mstats.num_alloc_fail++; in raw_malloc_return_hook()
217 if (requested_size > ctx->mstats.biggest_alloc_fail) { in raw_malloc_return_hook()
218 ctx->mstats.biggest_alloc_fail = requested_size; in raw_malloc_return_hook()
219 ctx->mstats.biggest_alloc_fail_used = in raw_malloc_return_hook()
229 ctx->mstats.max_allocated = 0; in gen_malloc_reset_stats()
230 ctx->mstats.num_alloc_fail = 0; in gen_malloc_reset_stats()
231 ctx->mstats.biggest_alloc_fail = 0; in gen_malloc_reset_stats()
232 ctx->mstats.biggest_alloc_fail_used = 0; in gen_malloc_reset_stats()
246 memcpy_unchecked(stats, &ctx->mstats, sizeof(*stats)); in gen_malloc_get_stats()
820 ctx->mstats.size += ctx->pool[ctx->pool_len].len; in gen_malloc_add_pool()