Add probes for malloc retries.
[jlayton/glibc.git] / ChangeLog
index 30c6a3996193a3c05cca4f1da35fc0ee5c6a6ce7..5745991ca674555eb8c2b79efa38bef3426291cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,257 @@
+2013-09-20  Alexandre Oliva <aoliva@redhat.com>
+
+       * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
+       (__libc_realloc): Add memory_realloc_retry probe.
+       (__libc_memalign): Add memory_memalign_retry probe.
+       (__libc_valloc): Add memory_valloc_retry probe.
+       (__libc_pvalloc): Add memory_pvalloc_retry probe.
+       (__libc_calloc): Add memory_calloc_retry probe.
+       * manual/probes.texi: Document them.
+
+       * malloc/arena.c (get_free_list): Add probe
+       memory_arena_reuse_free_list.
+       (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
+       and memory_arena_reuse.
+       (arena_get2) [!PER_THREAD]: Likewise.
+       * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
+       memory_arena_reuse_realloc.
+       * manual/probes.texi: Document them.
+
+       * malloc/malloc.c (__libc_free): Add
+       memory_mallopt_free_dyn_thresholds probe.
+       (__libc_mallopt): Add multiple memory_mallopt probes.
+       * manual/probes.texi: Document them.
+
+       * malloc/malloc.c: Include stap-probe.h.
+       (__libc_mallopt): Add memory_mallopt probe.
+       * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
+       * manual/probes.texi: New.
+       * manual/Makefile (chapters): Add probes.
+       * manual/threads.texi: Set next node.
+
+2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
+
+       [BZ #15963, #13985]
+       * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
+       czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
+       Add `Chinese' to `nan' entry name.
+
+2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
+       (POLYNOMIAL): Likewise.
+       (TAYLOR_SINCOS): Likewise.
+       (TAYLOR_SLOW): Likewise.
+       (__sin): Use TAYLOR_SINCOS.
+       (__cos): Likewise.
+       (slow): Use TAYLOR_SLOW.
+       (sloww): Likewise.
+       (bsloww): Likewise.
+       (csloww): Likewise.
+
+2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
+
+       * stdlib/strtod_l.c: Fix buffer overrun.
+
+2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * benchtests/Makefile (bench): Add sincos.
+       * benchtests/bench-sincos.c: New file.
+
+       * math/libm-test.inc (cos_test_data): New test inputs.
+       (sin_test_data): Likewise.
+
+       * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
+       macro.
+       (__sin): Use it.
+       (__cos): Likewise.
+       (slow1): Likewise.
+       (slow2): Likewise.
+       (sloww1): Likewise.
+       (sloww2): Likewise.
+       (bsloww1): Likewise.
+       (bsloww2): Likewise.
+       (cslow2): Likewise.
+       (csloww1): Likewise.
+       (csloww2): Likewise.
+
+       * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
+       function.
+       (__sin): Use it.
+       (__cos): Likewise.
+
+       * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
+       gotos.
+       (__cos): Likewise.
+
+2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * config.h.in (HAVE_MIPS_NAN2008): New macro.
+       * elf/elf.h (EF_MIPS_NAN2008): Likewise.
+       * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
+       (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
+       (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
+       * elf/cache.c (print_entry): Handle the new cache flags.
+
+2013-09-18  Joseph Myers  <joseph@codesourcery.com>
+           Aldy Hernandez  <aldyh@redhat.com>
+
+       * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
+       Change condition to [_SOFT_FLOAT].
+       [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
+       [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
+       [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
+       [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
+       [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
+       [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
+       [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
+       [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
+       [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
+       [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
+       [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
+       [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
+       [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
+       [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
+       [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
+       [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
+       declaration.
+
+2013-09-18  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
+       macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
+       (__longjmp): Use LOAD_GP to load saved GPRs.
+       * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
+       macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
+       (__sigsetjmp): Use SAVE_GP to save GPRs.
+
+       * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
+       Do not append -msoft-float.
+       [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
+
+2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
+
+2013-09-17  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #15966]
+       * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
+       (_FPU_GETCW): Use initial "__" on variable and field names but not
+       on macro parameter name.
+       [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
+       parentheses around reference to macro parameter.
+
+2013-09-13  Richard Sandiford  <richard@codesourcery.com>
+
+       * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
+       prototype.
+       (ctype_startup): Use uint32_t in cast and sizeof for
+       ctype->charnames.
+
+2013-09-11  Jia Liu  <proljc@gmail.com>
+
+       * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
+       __daddr_t_defined.
+       [__FreeBSD__]: Likewise.
+
+2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
+
+       * sysdeps/x86_64/multiarch/ifunc-impl-list.c
+       (__libc_ifunc_impl_list): Remove: __strchr_sse42.
+       * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
+       (strchr): Remove __strchr_sse42 ifunc selection.
+       * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
+       * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
+
+2013-09-11  Will Newton  <will.newton@linaro.org>
+
+       * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
+       parameter to RES. Remove hardcoded 1000 value.
+       * benchtests/bench-skeleton.c (main): Pass RES parameter
+       to TIMING_INIT and multiply result by 1000.
+
+2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
+
+       * sysdeps/powerpc/fpu/libm-test-ulps: Update.
+
+2013-09-11  Andreas Schwab  <schwab@suse.de>
+
+       * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
+       if not defined.
+       (O_TMPFILE) [__USE_GNU]: Define.
+       * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
+       Define.
+
+2013-09-11  Will Newton  <will.newton@linaro.org>
+
+       [BZ #15857]
+       * malloc/malloc.c (__libc_memalign): Check the value of bytes
+       does not overflow.
+
+2013-09-11  Will Newton  <will.newton@linaro.org>
+
+       [BZ #15856]
+       * malloc/malloc.c (__libc_valloc): Check the value of bytes
+       does not overflow.
+
+2013-09-11  Will Newton  <will.newton@linaro.org>
+
+       [BZ #15855]
+       * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
+       does not overflow.
+
+2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
+
+       * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
+       * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
+       * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
+       * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
+       * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
+
+2013-09-10  Allan McRae  <allan@archlinux.org>
+
+       [BZ #15748]
+       * manual/arith.texi (Parsing of Floats): Clarify
+       cross-reference.
+
+       [BZ #15849]
+       * manual/install.texi (Running make install): Mention
+       --enable-pt-chown.
+       * INSTALL: Regenerated.
+
+2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * csu/init-first.c (_init): Remove the !SHARED condition around
+       FPU control word initialization.
+       * elf/dl-support.c (_dl_fpu_control): New variable.
+       (_dl_aux_init) <AT_FPUCW>: Initialize it.
+       * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
+       (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
+       * math/test-fpucw-static.c: New file.
+       * math/test-fpucw-ieee.c: New file.
+       * math/test-fpucw-ieee-static.c: New file.
+       * math/Makefile (tests): Add `test-fpucw-ieee' and
+       `$(tests-static)'.
+       (tests-static): New variable.
+       [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
+       dependency to...
+       [($(build-shared),yes)]
+       ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
+       ... this.
+       [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
+       New dependency.
+
 2013-09-09  Allan McRae  <allan@archlinux.org>
 
+       [BZ #15939]
+       * manual/string.texi (Collation Functions): Fix typo in
+       strcoll example.
+       Reported by Suren Karapetyan <me@suren.karapetyan.name>.
+
+       [BZ #15893]
+       * stdlib/isomac.c (get_null_defines): Fix memory leak.
+
        [BZ #15892]
        * libio/memstream.c (open_memstream): Fix memory leak.
        * libio/wmemstream.c (open_wmemstream): Likewise.
 
 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
 
-     [BZ #15923]
+       [BZ #15923]
        * locale/iso-4217.def: Update iso-1427.def and related occurrences.
 
 2013-09-04  Joseph Myers  <joseph@codesourcery.com>