mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-26 02:27:21 +03:00
Optimize arena_prof_tctx_set().
Optimize arena_prof_tctx_set() to avoid reading run metadata when deciding whether it's actually necessary to write.
This commit is contained in:
parent
c0f43b6550
commit
594c759f37
4 changed files with 56 additions and 28 deletions
|
|
@ -219,7 +219,7 @@ void
|
|||
prof_malloc_sample_object(const void *ptr, size_t usize, prof_tctx_t *tctx)
|
||||
{
|
||||
|
||||
prof_tctx_set(ptr, tctx);
|
||||
prof_tctx_set(ptr, usize, tctx);
|
||||
|
||||
malloc_mutex_lock(tctx->tdata->lock);
|
||||
tctx->cnts.curobjs++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue