This is the mail archive of the glibc-bugs@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]

[Bug malloc/21338] New: mallopt M_ARENA_MAX doesn't set the maximum number of arenas


https://sourceware.org/bugzilla/show_bug.cgi?id=21338

            Bug ID: 21338
           Summary: mallopt M_ARENA_MAX doesn't set the maximum number of
                    arenas
           Product: glibc
           Version: 2.25
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: malloc
          Assignee: unassigned at sourceware dot org
          Reporter: laanwj at gmail dot com
  Target Milestone: ---

Commit be7991c0705e35b4d70a419d117addcd6c627319 (which is in version 2.25)
introduced helper functions for setting arena_max, arena_test and other malloc
parameters. However it contained a typo in a switch statement in
__libc_mallopt, which results in that M_ARENA_MAX sets arena_test instead.

This has the result that setting mallopt M_ARENA_MAX or env MALLOC_ARENA_MAX no
longer sets the maximum number of arenas.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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