On Fri, Jan 7, 2022 at 8:25 PM zack leung wrote:
>
> I think that the malloc tests is calculated differently than alloc_size+
> allocsize mod it looks like this
> *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
> when i run the comparison i get 8 (with heap alignment) an
There a way to get the same values used to make the calculation in malloc
get usable size?
Bump
Il ven 7 gen 2022, 21:25 zack leung ha scritto:
> I think that the malloc tests is calculated differently than alloc_size+
> allocsize mod it looks like this
> *alloc_size = (uintptr_t) next_block
I think that the malloc tests is calculated differently than alloc_size+
allocsize mod it looks like this
*alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
when i run the comparison i get 8 (with heap alignment) and the function
gives me 12.
is the heap alloc bonus part of
On Thu, Jan 6, 2022 at 2:55 PM Gedare Bloom wrote:
>
> On Tue, Jan 4, 2022 at 6:10 PM zack leung wrote:
> >
> > Helllo ,
> > I'm working on a patch for malloc_get_usable size right now so far i have
> > this test case for malloc, I just make sure that the value is null and i
> > just malloc an i
On Tue, Jan 4, 2022 at 6:10 PM zack leung wrote:
>
> Helllo ,
> I'm working on a patch for malloc_get_usable size right now so far i have
> this test case for malloc, I just make sure that the value is null and i
> just malloc an int and then i make a call to the function malloc_usable
> size an