summaryrefslogtreecommitdiffstats
path: root/src/prof.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2015-09-02 21:52:24 (GMT)
committerJason Evans <jasone@canonware.com>2015-09-02 21:52:24 (GMT)
commit594c759f37c301d0245dc2accf4d4aaf9d202819 (patch)
tree702d64356c7bc9114f53f7b8e0b95e89bb81306d /src/prof.c
parentc0f43b65500a78c87ef16579a33661103ec0a4fb (diff)
downloadjemalloc-594c759f37c301d0245dc2accf4d4aaf9d202819.zip
jemalloc-594c759f37c301d0245dc2accf4d4aaf9d202819.tar.gz
jemalloc-594c759f37c301d0245dc2accf4d4aaf9d202819.tar.bz2
Optimize arena_prof_tctx_set().
Optimize arena_prof_tctx_set() to avoid reading run metadata when deciding whether it's actually necessary to write.
Diffstat (limited to 'src/prof.c')
-rw-r--r--src/prof.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prof.c b/src/prof.c
index a05792f..b79eba6 100644
--- a/src/prof.c
+++ b/src/prof.c
@@ -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++;