diff options
author | Jason Evans <jasone@canonware.com> | 2015-09-02 21:52:24 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2015-09-02 21:52:24 (GMT) |
commit | 594c759f37c301d0245dc2accf4d4aaf9d202819 (patch) | |
tree | 702d64356c7bc9114f53f7b8e0b95e89bb81306d /src/prof.c | |
parent | c0f43b65500a78c87ef16579a33661103ec0a4fb (diff) | |
download | jemalloc-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.c | 2 |
1 files changed, 1 insertions, 1 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++; |