Repository navigation
What's changed since v0.0.6
This release adds macOS and Windows support, runs the Linux path on arm64 and in distro containers, and makes jemalloc 5.4.0 the default.
Features
- jemalloc 5.4.0 is the new default (was 5.3.0). Relevant fixes for an action that preloads jemalloc into every step:
freeno longer overwriteserrno, jemalloc no longer leaks a file descriptor into child processes, crashes during thread teardown and a deadlock are fixed, and it builds with GCC 16. It also includes the ~390 commits from 5.3.1. Known SHA-256s are baked in for 5.4.0, 5.3.1, and 5.3.0. (#36) - Windows support. The action builds
jemalloc.dllplus a Detours-based launcher. You wrap the command you want to run under jemalloc with the newjemalloc-runoutput. Only processes using the shared UCRT (/MD) are redirected. There's no transparent preload on Windows. See the README's Windows section. (#29, #30, #31) - macOS support. Preloading jemalloc alone doesn't replace the allocator on modern macOS, so the action builds a small dyld interposer that routes
malloc/free/calloc/realloc/malloc_sizeto jemalloc. It's exposed as the newinterpose-dyliboutput and inserted withDYLD_INSERT_LIBRARIES. This is also a wrap-your-command model. SIP stripsDYLD_*from Apple-protected binaries. (#33) - Linux on arm64 and in distro containers. CI now runs the action end to end on Ubuntu 22.04/24.04, Debian 12, Fedora 40, Rocky 9, and openSUSE Leap 15 (x64 and arm64), plus Arch and Alpine (musl) on x64. The install step detects whether it's running as root or has
sudo, so it works in containers that run as root withoutsudo. (#26, #27)
Fixes
- Architecture- and distro-aware cache key. The key used to be the same for every Linux runner, so a mixed x64/arm64 setup could restore and preload a library built for the wrong architecture. It now includes the OS, CPU architecture, and distro/version. (#26, #27)
Upgrade notes
- Linux behavior is unchanged: jemalloc is still preloaded into every later step through
LD_PRELOAD. - One-time rebuild: the cache key changed, so the first run after upgrading builds jemalloc again for each platform.
- Containers need a toolchain: in a minimal container, install
gcc,make,curl,bzip2,tar, andca-certificatesbefore this action. See the README. - Removed jemalloc settings: jemalloc 5.4.0 removes seven thread-cache tuning options. If you set them in
MALLOC_CONF, they're now silently ignored. To stay on the old jemalloc, pinjemalloc-version: 5.3.0.
Full Changelog: v0.0.6...v0.1.0