Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions recipe/build-jemalloc-local.sh

This file was deleted.

7 changes: 5 additions & 2 deletions recipe/build-jemalloc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ cp $BUILD_PREFIX/share/gnuconfig/config.* ./build-aux

set -exuo pipefail

export CXXFLAGS="-std=c++17 $CXXFLAGS"
# export EXTRA_CONFIGURE_ARGS="--with-jemalloc-prefix=local --with-install-suffix=local --enable-prof --enable-stats --enable-blarg"

# Static TLS has caused users to experience some errors of the form
# "libjemalloc.so.2: cannot allocate memory in static TLS block"
#
Expand All @@ -18,8 +21,9 @@ if [[ ${target_platform} =~ linux.* ]]; then
# https://github.com/jemalloc/jemalloc/issues/1237
./configure --prefix=${PREFIX} \
--disable-static \
--disable-tls \
--disable-initial-exec-tls \
--enable-prof \
--enable-stats \
${EXTRA_CONFIGURE_ARGS:---with-mangling=aligned_alloc:__aligned_alloc}
elif [[ "${target_platform}" == "osx-arm64" ]]; then
./configure --prefix=${PREFIX} \
Expand All @@ -29,7 +33,6 @@ elif [[ "${target_platform}" == "osx-arm64" ]]; then
else
./configure --prefix=${PREFIX} \
--disable-static \
--disable-tls \
${EXTRA_CONFIGURE_ARGS:-}
fi
make -j${CPU_COUNT}
Expand Down
54 changes: 1 addition & 53 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set name = "jemalloc" %}
{% set name = "jemalloc-katana" %}
{% set version = "5.3.0" %}

package:
Expand Down Expand Up @@ -65,58 +65,6 @@ outputs:
- test -f $PREFIX/bin/jeprof
- $CC -I$PREFIX/include -L$PREFIX/lib -ljemalloc test.c

- name: lib{{ name }}-local
script: build-jemalloc-local.sh
build:
run_exports:
# Symbols were only removed in update from 3 to 4
# https://abi-laboratory.pro/index.php?view=timeline&l=jemalloc
- {{ pin_subpackage("libjemalloc-local", max_pin=None) }}
requirements:
build:
- make
- gnuconfig # [unix]
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
test:
commands:
- test -f $PREFIX/lib/libjemalloclocal.so.2 # [linux]
- test ! -f $PREFIX/lib/libjemalloc${SHLIB_EXT}
- test ! -f $PREFIX/lib/libjemalloclocal.a
- test ! -f $PREFIX/lib/libjemalloclocal_pic.a
- test -f $PREFIX/lib/libjemalloclocal.2.dylib # [osx]
- test -f $PREFIX/include/jemalloc/jemalloclocal.h
- test ! -f $PREFIX/jeprof

- name: {{ name }}-local
script: build-jemalloc-local.sh
build:
run_exports:
# Symbols were only removed in update from 3 to 4
# https://abi-laboratory.pro/index.php?view=timeline&l=jemalloc
- {{ pin_subpackage("libjemalloc-local", max_pin=None) }}
requirements:
build:
- make
- gnuconfig # [unix]
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
- {{ pin_subpackage('libjemalloc-local', exact=true) }}
run:
- {{ pin_subpackage('libjemalloc-local', exact=true) }}
run_constrained:
- jemalloc <0a0
test:
requires:
- {{ compiler('c') }}
files:
- test-local.c
commands:
- test -f $PREFIX/bin/jeprof
- $CC -I$PREFIX/include -L$PREFIX/lib -ljemalloclocal test-local.c

about:
home: http://jemalloc.net
dev_url: https://github.com/jemalloc/jemalloc
Expand Down