This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Are M_ARENA_MAX and M_ARENA_TEST public mallopt parameters?


On Thu, Mar 14, 2013 at 03:08:03PM -0400, Carlos O'Donell wrote:
> In malloc/malloc.c I see:
> 
> #ifdef PER_THREAD
> /*  Non public mallopt parameters.  */
<snip>
> Yet in malloc/malloc.h I see:
> 
> /* mallopt options that actually do something */
<snip>
> #define M_ARENA_TEST        -7
> #define M_ARENA_MAX         -8
> 
> So which is it? Public? Private?

Should be public IMO.

> Do we document M_ARENA_TEST and M_ARENA_MAX and make them
> work as expected?

They ought to work as expected already, so the only thing to do
probably is to document them.  But TBH, I have only tested the
environment variable in the past and that has worked well.

Siddhesh


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