Ulrich Drepper
7d17596c19
Mark malloc hook variables as deprecated
2011-05-29 21:10:23 -04:00
Ulrich Drepper
a33c44639a
Perhaps the real definition of __MALLOC_HOOK_VOLATILE should be added
2011-05-29 20:43:54 -04:00
Ulrich Drepper
0810a11e53
Missed one malloc hook variable
2011-05-29 20:41:09 -04:00
Ulrich Drepper
cf6bbbd701
Declare malloc hook variables as volatile.
2011-05-29 20:40:08 -04:00
Ulrich Drepper
de81b24662
Unify messages
...
Some shell scripts unnecessarily used different formats for some
messages. Unify them to reduce the work of translators.
2011-05-28 09:49:05 -04:00
Ulrich Drepper
56e5eb4619
Avoid potential deadlock in mtrace
...
The _dl_addr function might have to call malloc which would lead
to a deadlock. Avoid by calling _dl_addr early.
2011-05-16 00:58:33 -04:00
Ulrich Drepper
6ce7537960
Remove USE_MTRACE_FILE support from mtrace
2011-05-16 00:22:16 -04:00
Jim Meyering
ded5b9b7c7
Remove doubled words.
2011-04-22 21:34:32 -04:00
Ulrich Drepper
c0dafcf176
Update copyright year.
2011-01-17 15:08:10 -05:00
Ulrich Drepper
9798346413
Use fastbin macro everywhere.
2010-12-25 14:15:42 -05:00
Ulrich Drepper
fdc0f374bc
Fix perturbing in malloc on free.
2010-10-24 22:37:00 -04:00
Ulrich Drepper
3b11189345
Handle large requests.
2010-10-03 22:27:21 -04:00
Anton Blanchard
b9b42ee01c
Replace divide and multiply with mask in sYSTRIm
2010-08-16 23:06:55 -07:00
Ulrich Drepper
5f24d53acb
Fix race in free sanity check.
2010-05-06 04:42:46 -07:00
Ulrich Drepper
2645b8e5cc
Remove unintended change.
2010-04-14 21:09:21 -07:00
H.J. Lu
dd37cd1a12
Optimie x86-64 SSE4 memcmp for unaligned data.
2010-04-14 17:53:44 -07:00
Ulrich Drepper
ad3d3e8f20
Fix possibly uninitilized variable handling.
...
If malloc errors are ignored (which say aren't by default and never
should be) malloc in the old, slow form might use an uninitialized
variable.
2010-04-08 17:12:42 -07:00
Ulrich Drepper
90a3055e8b
One more sanity check in free.
2010-04-03 09:47:01 -07:00
Ulrich Drepper
991eda1ec1
Fix set_max_fast in malloc.
2010-04-03 09:43:10 -07:00
Ulrich Drepper
2b0fba7530
Remove stale reference to website
2010-03-26 05:09:55 -07:00
Ulrich Drepper
3e259dbb32
Remove unwanted malloc changes, again.
2010-03-26 04:00:10 -07:00
Ulrich Drepper
70c90289ff
Merge branch 'master' of ssh://sources.redhat.com/git/glibc
...
Conflicts:
ChangeLog
2010-03-25 19:45:20 -07:00
Ulrich Drepper
561470e061
Update copyright year.
2010-03-15 11:50:59 -07:00
Ulrich Drepper
9d2569846c
Fix typos I added in malloc.c
2010-02-24 19:47:09 -08:00
Petr Baudis
8c0b5f148e
Fix assertion in palloc and pvalloc as well.
2010-02-24 15:44:29 -08:00
Ulrich Drepper
2c2243f708
Undo unintended maloc change.
2010-02-10 00:04:49 -08:00
Andreas Schwab
7eb22e757e
Avoid PLT call to fegetenv on s390
2010-02-09 22:34:17 -08:00
Ulrich Drepper
346bc35c33
Fix malloc_info without prioor allocations.
2010-01-14 13:32:58 -08:00
Holger Hans Peter Freyther
685cb08356
Fix spelling in memusagestat.c
2009-11-06 09:32:06 -08:00
Ulrich Drepper
cc49a5a883
Restore locking in free_check.
...
This code is only used when MALLOC_CHECK_ is used. Then some bogus
crashes and/or assert could result from the locking changes. The code
ain't fast.
2009-11-01 07:27:00 -08:00
John Sullivan
ee6f35389c
Fix typos in format strings of malloc_info.
2009-10-29 21:50:35 -07:00
Ulrich Drepper
67854c131c
Fix repairing of memusage trace files.
2009-10-29 14:19:33 -07:00
Andreas Schwab
22bc5239e1
Fix wrap-around in memusage.
2009-10-29 11:25:20 -07:00
Ulrich Drepper
72f9026327
Add local assert function to avoid problems with memory allocation in
...
the real one.
2009-08-31 04:55:10 -07:00
Jakub Jelinek
1877ea16ca
Fix obstack* on i?86
...
obstack calls several callbacks, so on i?86 it'd better be compiled
without -mpreferred-stack-boundary=2, otherwise the callbacks are called
with misaligned stack.
2009-07-31 07:26:36 -07:00
Ulrich Drepper
bec466d922
Fix race in corruption check.
...
With atomic fastbins the checks performed can race with concurrent
modifications of the arena. If we detect a problem re-do the test
after getting the lock.
2009-07-16 09:54:34 -07:00
Jakub Jelinek
bea0ac1d87
Use rel semantics of cas instead of acq semantics with full barrier before it in _int_free
...
The following patch fixes catomic_compare_and_exchange_*_rel definitions
(which were never used and weren't correct) and uses
catomic_compare_and_exchange_val_rel in _int_free. Comparing to the
pre-2009-07-02 --enable-experimental-malloc state the generated code should
be identical on all arches other than ppc/ppc64 and on ppc/ppc64 should use
lwsync instead of isync barrier.
2009-07-16 07:24:50 -07:00
Ulrich Drepper
6cbbaa50aa
Fix possible race when freeing object in fast bin list.
2009-07-02 03:30:55 -07:00
Ulrich Drepper
f6887a0d9a
Add some more tests to malloc to detect corruptions.
2009-06-18 22:37:31 -07:00
Andreas Schwab
f60ddf9bf7
Don't treat bug reporting message as a format string.
2009-06-16 20:34:55 -07:00
Ulrich Drepper
0588a9cb62
* malloc/malloc.c (malloc_info): Output address space information.
2009-04-18 08:44:10 +00:00
Ulrich Drepper
da2d2fb68d
* malloc/malloc.c (malloc_info): Also output system memory information.
2009-04-18 05:14:52 +00:00
Ulrich Drepper
acdf23097f
(top_check): Force hook value into register.
2009-04-17 17:55:06 +00:00
Ulrich Drepper
df77455c4b
[BZ #9957 ]
...
2009-04-16 Ulrich Drepper <drepper@redhat.com>
[BZ #9957 ]
* malloc/malloc.c (force_reg): Define.
(sYSMALLOc): Load hook variable into variable
before test and force into register.
(sYSTRIm): Likewise.
(public_mALLOc): Force hook value into register.
(public_fREe): Likewise.
(public_rEALLOc): Likewise.
(public_mEMALIGn): Likewise.
(public_vALLOc): Likewise.
(public_pVALLOc): Likewise.
(public_cALLOc): Likewise.
(__posix_memalign): Likewise.
* malloc/arena.c (ptmalloc_init): Load hook variable into variable
before test and force into register.
* malloc/hooks.c (top_check): Likewise.
(public_s_ET_STATe): Pretty printing.
* resolv/res_send.c (send_dg): Don't just ignore the result we got
in case we only receive one reply in single-request mode.
2009-04-16 21:22:16 +00:00
Ulrich Drepper
bb06654506
* malloc/malloc.c (malloc_info): New function.
...
* malloc/malloc.h: Declare it.
* malloc/Versions: Export malloc_info for GLIBC_2.10.
* resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2009-04-09 05:45:42 +00:00
Ulrich Drepper
4c8b8cc332
* malloc/malloc.c (_int_realloc): Add parameter with old block
...
size. Remove duplicated test. Don't handle mmap'ed blocks here.
Adjust all callers.
* malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2009-04-08 18:00:34 +00:00
Ulrich Drepper
425ce2edb9
* config.h.in (USE_MULTIARCH): Define.
...
* configure.in: Handle --enable-multi-arch.
* elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
(_dl_fixup_profile): Likewise.
* elf/do-lookup.c (dl_lookup_x): Likewise.
* sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
* elf/elf.h (STT_GNU_IFUNC): Define.
* include/libc-symbols.h (libc_ifunc): Define.
* sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
framework in init-arch.h to get CPUID values.
* sysdeps/x86_64/multiarch/Makefile: New file.
* sysdeps/x86_64/multiarch/init-arch.c: New file.
* sysdeps/x86_64/multiarch/init-arch.h: New file.
* sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
* config.make.in (experimental-malloc): Define.
* configure.in: Handle --enable-experimental-malloc.
* malloc/Makefile: Handle experimental-malloc flag.
* malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
* malloc/arena.c: Likewise.
* malloc/hooks.c: Likewise.
* malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2009-03-13 23:53:18 +00:00
Jakub Jelinek
d82a27f841
* stdlib/monetary.h: Uglify function parameter names.
...
* sunrpc/rpc/pmap_clnt.h: Likewise.
* sunrpc/rpc/svc.h: Likewise.
* sunrpc/rpc/xdr.h: Likewise.
* sunrpc/rpc/clnt.h: Likewise.
* resolv/netdb.h: Likewise.
* resolv/arpa/nameser.h: Likewise.
* resolv/resolv.h: Likewise.
* argp/argp.h: Likewise.
* locale/langinfo.h: Likewise.
* io/sys/stat.h: Likewise.
* posix/spawn.h: Likewise.
* nis/rpcsvc/nislib.h: Likewise.
* malloc/obstack.h: Likewise.
* sysdeps/ia64/bits/link.h: Likewise.
* sysdeps/i386/bits/link.h: Likewise.
* sysdeps/s390/bits/link.h: Likewise.
* sysdeps/powerpc/bits/link.h: Likewise.
* sysdeps/x86_64/bits/link.h: Likewise.
* sysdeps/sparc/bits/link.h: Likewise.
* sysdeps/sh/bits/link.h: Likewise.
* sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
* sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2009-02-16 Jakub Jelinek <jakub@redhat.com>
* stdlib/monetary.h: Uglify function parameter names.
* sunrpc/rpc/pmap_clnt.h: Likewise.
* sunrpc/rpc/svc.h: Likewise.
* sunrpc/rpc/xdr.h: Likewise.
* sunrpc/rpc/clnt.h: Likewise.
* resolv/netdb.h: Likewise.
* resolv/arpa/nameser.h: Likewise.
* resolv/resolv.h: Likewise.
* argp/argp.h: Likewise.
* locale/langinfo.h: Likewise.
* io/sys/stat.h: Likewise.
* posix/spawn.h: Likewise.
* nis/rpcsvc/nislib.h: Likewise.
* malloc/obstack.h: Likewise.
* sysdeps/ia64/bits/link.h: Likewise.
* sysdeps/i386/bits/link.h: Likewise.
* sysdeps/s390/bits/link.h: Likewise.
* sysdeps/powerpc/bits/link.h: Likewise.
* sysdeps/x86_64/bits/link.h: Likewise.
* sysdeps/sparc/bits/link.h: Likewise.
* sysdeps/sh/bits/link.h: Likewise.
* sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
* sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2009-02-16 21:00:15 +00:00
Ulrich Drepper
6dd6a580df
(_int_realloc): Likewise. Third argument is now padded size
2009-02-07 22:49:34 +00:00
Ulrich Drepper
78ac92ad8d
* malloc/malloc.c (_int_free): Second argument is now mchunkptr.
...
Change all callers.
(_int_realloc): Likewise.
All _int_* functions are now static.
* malloc/hooks.c: Change all callers to _int_free and _int_realloc.
* malloc/arena.c: Likewise.
* include/malloc.h: Remove now unnecessary declarations of the _int_*
functions.
2009-02-07 22:01:49 +00:00