diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-03-08 00:50:21 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-03-08 00:50:21 +0000 |
commit | 854278dff83a754f1d24a17c1c1068e8ebfe6195 (patch) | |
tree | 0b2c09f41fad4dfe99070c3df5caedf9718d72ae /Rules | |
parent | a5a33449fb4b947c681968834b380cbc374018bb (diff) | |
download | glibc-854278dff83a754f1d24a17c1c1068e8ebfe6195.zip glibc-854278dff83a754f1d24a17c1c1068e8ebfe6195.tar.gz glibc-854278dff83a754f1d24a17c1c1068e8ebfe6195.tar.bz2 |
* malloc/arena.c (ptmalloc_init): Recognize MALLOC_PERTURB_ and call
mallopt appropriately.
* malloc/malloc.h: Define M_PERTURB.
* malloc/malloc.c (perturb_byte): New variable.
(alloc_perturb, free_perturb): New macros.
(_int_malloc): Before returning, overwrite the memory if this is
requested.
(_int_free): Overwrite freed memory if requested.
(mALLOPt): Handle M_PERTURB.
* test-skeleton.c: Add call to mallopt with M_PERTURB command.
Diffstat (limited to 'Rules')
0 files changed, 0 insertions, 0 deletions