diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-08-30 19:29:38 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-08-30 20:08:34 +0200 |
commit | ac3ed168d0c0b2b702319ac0db72c9b475a8c72e (patch) | |
tree | 31135c056fc400d97b639238df4748085c9b1614 /ChangeLog | |
parent | 44bcba80f309b7517f8f954b0389e60eb421373b (diff) | |
download | glibc-ac3ed168d0c0b2b702319ac0db72c9b475a8c72e.zip glibc-ac3ed168d0c0b2b702319ac0db72c9b475a8c72e.tar.gz glibc-ac3ed168d0c0b2b702319ac0db72c9b475a8c72e.tar.bz2 |
malloc: Remove check_action variable [BZ #21754]
Clean up calls to malloc_printerr and trim its argument list.
This also removes a few bits of work done before calling
malloc_printerr (such as unlocking operations).
The tunable/environment variable still enables the lightweight
additional malloc checking, but mallopt (M_CHECK_ACTION)
no longer has any effect.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -1,3 +1,30 @@ +2017-08-30 Florian Weimer <fweimer@redhat.com> + + [BZ #21754] + * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set + check_action. + (ptmalloc_init): Do not set or use check_action. + * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust + call to malloc_printerr. Remove return statement. + (free_check): Likewise. Remove arena unlock. + (top_check): Update comment. Adjust call to malloc_printerr. + Remove heap repair code. + * malloc/malloc.c (unlink): Adjust calls to malloc_printerr. + (DEFAULT_CHECK_ACTION, check_action): Remove definitions. + (sysmalloc): Adjust call to malloc_printerr. + (munmap_chunk, __libc_realloc): Likewise. Remove return + statement. + (_int_malloc, int_realloc): Likewise. Remove errstr variable. + Remove errout label and corresponding gotos. + (_int_free): Likewise. Remove arena unlock. + (do_set_mallopt_check): Do not set check_action. + (malloc_printerr): Adjust parameter list. Do not mark arena as + corrupt. + * manual/memory.texi (Malloc Tunable Parameters): Remove TODO + comment. + * manual/probes.texi (Memory Allocation Probes): Remove + memory_mallopt_check_action. + 2017-08-30 Steve Ellcey <sellcey@cavium.com> * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext): |