mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-20 03:46:21 +03:00
Miscellaneous cleanups.
This commit is contained in:
parent
d33f834591
commit
cfc5706f69
3 changed files with 10 additions and 10 deletions
|
|
@ -361,10 +361,9 @@ prof_tctx_get(const void *ptr)
|
|||
assert(ptr != NULL);
|
||||
|
||||
chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(ptr);
|
||||
if (likely(chunk != ptr)) {
|
||||
/* Region. */
|
||||
if (likely(chunk != ptr))
|
||||
ret = arena_prof_tctx_get(ptr);
|
||||
} else
|
||||
else
|
||||
ret = huge_prof_tctx_get(ptr);
|
||||
|
||||
return (ret);
|
||||
|
|
@ -379,10 +378,9 @@ prof_tctx_set(const void *ptr, prof_tctx_t *tctx)
|
|||
assert(ptr != NULL);
|
||||
|
||||
chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(ptr);
|
||||
if (likely(chunk != ptr)) {
|
||||
/* Region. */
|
||||
if (likely(chunk != ptr))
|
||||
arena_prof_tctx_set(ptr, tctx);
|
||||
} else
|
||||
else
|
||||
huge_prof_tctx_set(ptr, tctx);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue