Package: jemalloc / 5.3.0-4

Metadata

Package Version Patches format
jemalloc 5.3.0-4 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
Disable builtin malloc in tests.patch | (download)

Makefile.in | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 disable builtin malloc in tests

With `--with-jemalloc-prefix=` and without `-fno-builtin` or `-O1` both clang and gcc may optimize out `malloc` calls
whose result is unused. Comparing result to NULL also doesn't necessarily count as being used.

This won't be a problem in most client programs as this only concerns really unused pointers, but in
tests it's important to actually execute allocations.
`-fno-builtin` should disable this optimization for both gcc and clang, and applying it only to tests code shouldn't hopefully be an issue.
Another alternative is to force "use" of result but that'd require more changes and may miss some other optimization-related issues.

This should resolve https://github.com/jemalloc/jemalloc/issues/2091

Bug: https://github.com/jemalloc/jemalloc/issues/2091
Bug-Debian: https://bugs.debian.org/1096872
hurd.patch | (download)

configure.ac | 18 18 + 0 - 0 !
src/background_thread.c | 8 6 + 2 - 0 !
src/jemalloc.c | 10 8 + 2 - 0 !
3 files changed, 32 insertions(+), 4 deletions(-)

 add support for hurd
 Add support to configure.ac for GNU Hurd, per
 https://www.gnu.org/software/hurd/hurd/porting/guidelines.html