mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Call the right helper function when setting mallopt M_ARENA_MAX (BZ #21338)
Fixes a typo introduced in commit
be7991c070
. This caused
mallopt(M_ARENA_MAX) as well as the environment variable
MALLOC_ARENA_MAX to not work as intended because it set the
wrong internal parameter.
[BZ #21338]
* malloc/malloc.c: Call do_set_arena_max for M_ARENA_MAX
instead of incorrect do_set_arena_test
This commit is contained in:
committed by
Siddhesh Poyarekar
parent
1361e98d56
commit
622222846a
@ -1,3 +1,9 @@
|
|||||||
|
2017-04-01 Wladimir van der Laan <laanwj@gmail.com>
|
||||||
|
|
||||||
|
[BZ# 21338]
|
||||||
|
* malloc/malloc.c: Call do_set_arena_max for M_ARENA_MAX
|
||||||
|
instead of incorrect do_set_arena_test
|
||||||
|
|
||||||
2017-03-31 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
|
2017-03-31 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* math/math.h: Fix check for __MATH_DECLARE_LDOUBLE.
|
* math/math.h: Fix check for __MATH_DECLARE_LDOUBLE.
|
||||||
|
@ -4904,7 +4904,7 @@ __libc_mallopt (int param_number, int value)
|
|||||||
|
|
||||||
case M_ARENA_MAX:
|
case M_ARENA_MAX:
|
||||||
if (value > 0)
|
if (value > 0)
|
||||||
do_set_arena_test (value);
|
do_set_arena_max (value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
__libc_lock_unlock (av->mutex);
|
__libc_lock_unlock (av->mutex);
|
||||||
|
Reference in New Issue
Block a user