Skip to content

v0.1.0

Latest

Choose a tag to compare

@kaeawc kaeawc released this 27 Sep 10:04
2c377b1

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: free no longer overwrites errno, 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.dll plus a Detours-based launcher. You wrap the command you want to run under jemalloc with the new jemalloc-run output. 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_size to jemalloc. It's exposed as the new interpose-dylib output and inserted with DYLD_INSERT_LIBRARIES. This is also a wrap-your-command model. SIP strips DYLD_* 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 without sudo. (#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, and ca-certificates before 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, pin jemalloc-version: 5.3.0.

Full Changelog: v0.0.6...v0.1.0