mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 00:57:19 +03:00
Threshold is no longer updated before prof_realloc()
This commit is contained in:
parent
7e3671911f
commit
055478cca8
2 changed files with 5 additions and 5 deletions
|
|
@ -3037,8 +3037,8 @@ irallocx_prof(tsd_t *tsd, void *old_ptr, size_t old_usize, size_t size,
|
|||
*/
|
||||
*usize = isalloc(tsd_tsdn(tsd), p);
|
||||
}
|
||||
prof_realloc(tsd, p, *usize, tctx, prof_active, false, old_ptr,
|
||||
old_usize, &old_prof_info);
|
||||
prof_realloc(tsd, p, *usize, tctx, prof_active, old_ptr, old_usize,
|
||||
&old_prof_info);
|
||||
|
||||
return p;
|
||||
}
|
||||
|
|
@ -3314,7 +3314,7 @@ ixallocx_prof(tsd_t *tsd, void *ptr, size_t old_usize, size_t size,
|
|||
prof_alloc_rollback(tsd, tctx, false);
|
||||
return usize;
|
||||
}
|
||||
prof_realloc(tsd, ptr, usize, tctx, prof_active, false, ptr, old_usize,
|
||||
prof_realloc(tsd, ptr, usize, tctx, prof_active, ptr, old_usize,
|
||||
&old_prof_info);
|
||||
|
||||
return usize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue