mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Don't change no_dyn_threshold on mallopt failure
* malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not change internal state upon failure.
This commit is contained in:
committed by
Alexandre Oliva
parent
fad64255f4
commit
5c44738353
@ -1,3 +1,8 @@
|
|||||||
|
2012-09-05 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
|
* malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
|
||||||
|
change internal state upon failure.
|
||||||
|
|
||||||
2012-09-05 Alexandre Oliva <aoliva@redhat.com>
|
2012-09-05 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
* malloc/mcheck.c (mcheck_check_all): Fix typo.
|
* malloc/mcheck.c (mcheck_check_all): Fix typo.
|
||||||
|
@ -4769,8 +4769,10 @@ int __libc_mallopt(int param_number, int value)
|
|||||||
if((unsigned long)value > HEAP_MAX_SIZE/2)
|
if((unsigned long)value > HEAP_MAX_SIZE/2)
|
||||||
res = 0;
|
res = 0;
|
||||||
else
|
else
|
||||||
mp_.mmap_threshold = value;
|
{
|
||||||
mp_.no_dyn_threshold = 1;
|
mp_.mmap_threshold = value;
|
||||||
|
mp_.no_dyn_threshold = 1;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case M_MMAP_MAX:
|
case M_MMAP_MAX:
|
||||||
|
Reference in New Issue
Block a user