This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: malloc.c cleanups


Wolfram Gloger <wmglo@dent.med.uni-muenchen.de> writes:

> OK, I see.  It's probably a matter of taste, but I would prefer to see
> sizeof(main_arena.av[0]) used rather than the cast NULL pointer.

Fine by me.

Will you approve the patch if next_bin and prev_bin are changed like so?

#define next_bin(b)    ((mbinptr)((char*)(b) + 2 * sizeof(main_arena.av[0])))
#define prev_bin(b)    ((mbinptr)((char*)(b) - 2 * sizeof(main_arena.av[0])))

BTW, who has approval authority for malloc.c changes?
You only?  Uli only?  Both of you?

Thanks,
Greg

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]