s/max_usize/usize_max/g
This commit is contained in:
parent
d9704042ee
commit
ce9a4e3479
@ -2251,7 +2251,7 @@ ixallocx_helper(void *ptr, size_t old_usize, size_t size, size_t extra,
|
|||||||
|
|
||||||
static size_t
|
static size_t
|
||||||
ixallocx_prof_sample(void *ptr, size_t old_usize, size_t size, size_t extra,
|
ixallocx_prof_sample(void *ptr, size_t old_usize, size_t size, size_t extra,
|
||||||
size_t alignment, size_t max_usize, bool zero, prof_tctx_t *tctx)
|
size_t alignment, size_t usize_max, bool zero, prof_tctx_t *tctx)
|
||||||
{
|
{
|
||||||
size_t usize;
|
size_t usize;
|
||||||
|
|
||||||
@ -2265,7 +2265,7 @@ ixallocx_prof_sample(void *ptr, size_t old_usize, size_t size, size_t extra,
|
|||||||
(SMALL_MAXCLASS+1), alignment, zero))
|
(SMALL_MAXCLASS+1), alignment, zero))
|
||||||
return (old_usize);
|
return (old_usize);
|
||||||
usize = isalloc(ptr, config_prof);
|
usize = isalloc(ptr, config_prof);
|
||||||
if (max_usize < LARGE_MINCLASS)
|
if (usize_max < LARGE_MINCLASS)
|
||||||
arena_prof_promoted(ptr, usize);
|
arena_prof_promoted(ptr, usize);
|
||||||
} else {
|
} else {
|
||||||
usize = ixallocx_helper(ptr, old_usize, size, extra, alignment,
|
usize = ixallocx_helper(ptr, old_usize, size, extra, alignment,
|
||||||
@ -2279,7 +2279,7 @@ JEMALLOC_ALWAYS_INLINE_C size_t
|
|||||||
ixallocx_prof(tsd_t *tsd, void *ptr, size_t old_usize, size_t size,
|
ixallocx_prof(tsd_t *tsd, void *ptr, size_t old_usize, size_t size,
|
||||||
size_t extra, size_t alignment, bool zero)
|
size_t extra, size_t alignment, bool zero)
|
||||||
{
|
{
|
||||||
size_t max_usize, usize;
|
size_t usize_max, usize;
|
||||||
bool prof_active;
|
bool prof_active;
|
||||||
prof_tctx_t *old_tctx, *tctx;
|
prof_tctx_t *old_tctx, *tctx;
|
||||||
|
|
||||||
@ -2294,12 +2294,12 @@ ixallocx_prof(tsd_t *tsd, void *ptr, size_t old_usize, size_t size,
|
|||||||
* prof_alloc_prep() to decide whether to capture a backtrace.
|
* prof_alloc_prep() to decide whether to capture a backtrace.
|
||||||
* prof_realloc() will use the actual usize to decide whether to sample.
|
* prof_realloc() will use the actual usize to decide whether to sample.
|
||||||
*/
|
*/
|
||||||
max_usize = (alignment == 0) ? s2u(size+extra) : sa2u(size+extra,
|
usize_max = (alignment == 0) ? s2u(size+extra) : sa2u(size+extra,
|
||||||
alignment);
|
alignment);
|
||||||
tctx = prof_alloc_prep(tsd, max_usize, prof_active, false);
|
tctx = prof_alloc_prep(tsd, usize_max, prof_active, false);
|
||||||
if (unlikely((uintptr_t)tctx != (uintptr_t)1U)) {
|
if (unlikely((uintptr_t)tctx != (uintptr_t)1U)) {
|
||||||
usize = ixallocx_prof_sample(ptr, old_usize, size, extra,
|
usize = ixallocx_prof_sample(ptr, old_usize, size, extra,
|
||||||
alignment, zero, max_usize, tctx);
|
alignment, zero, usize_max, tctx);
|
||||||
} else {
|
} else {
|
||||||
usize = ixallocx_helper(ptr, old_usize, size, extra, alignment,
|
usize = ixallocx_helper(ptr, old_usize, size, extra, alignment,
|
||||||
zero);
|
zero);
|
||||||
|
Loading…
Reference in New Issue
Block a user