Static inline functions for mallopt helpers
commitbe7991c0705e35b4d70a419d117addcd6c627319
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 27 Oct 2016 03:04:55 +0000 (27 08:34 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 27 Oct 2016 03:04:55 +0000 (27 08:34 +0530)
tree4ac31c3893e8bc10f40630cb457f6830d49e3067
parenteaf5ad0bc4a67bf40999e22db6f583ebc3a806ba
Static inline functions for mallopt helpers

Make mallopt helper functions for each mallopt parameter so that it
can be called consistently in other areas, like setting tunables.

* malloc/malloc.c (do_set_mallopt_check): New function.
(do_set_mmap_threshold): Likewise.
(do_set_mmaps_max): Likewise.
(do_set_top_pad): Likewise.
(do_set_perturb_byte): Likewise.
(do_set_trim_threshold): Likewise.
(do_set_arena_max): Likewise.
(do_set_arena_test): Likewise.
(__libc_mallopt): Use them.
ChangeLog
malloc/malloc.c