Upgrade notes
- The minimum supported Rust version is 1.72 (#201). The optional
alloc_trait
feature implementscore::alloc::Allocatoron Rust 1.100 and later (#188). - Bundled jemalloc is now 5.4.0 (#185). It silently ignores seven retired
malloc_confsettings, includingtcache_nslots_small_max. The corresponding
opt.*queries returnENOENT. Full list in the jemalloc ChangeLog. - In
tikv-jemalloc-ctl, constructing typed names and MIBs from raw input
now requiresunsafe.Name::newreturns aResult, andName::mib()
determines the MIB length from the key. Raw string reads, raw string updates,
and built-inname()accessors return&CStr. Raw string writes require
unsafe(#201, #203). ThreadLocal::getandprof_resetnow requireunsafe. Statistics printing
requiresuse_std. For full output, use the unsafestats_print_with_environment
function and enablestatsfor runtime metrics (#201).
Allocator and control APIs
- Bundled jemalloc includes fast paths for
mallocxanddallocx(#185).
The allocator honors the target's allocation alignment and custom jemalloc
quantum settings (#188). - Add
thread::tcache_enabledto control the calling thread's cache (#194). - Expose pinned allocation flags and
stats::pinned(#187), along with
profiling controls and experimental profiling hooks (#172).
Build and platform support
- When Cargo selects optimization level 0 and the allocator's
debugfeature
is off, build bundled jemalloc at level 3. On GCC and Clang, omit debug
information when the Cargo profile disables it. ExplicitCFLAGStake
precedence (#204, #205). - Enabling
background_threadsalso enables the allocator's
background_threads_runtime_supportfeature (#204). Background threads
remain off by default on unsupported targets (#191). - Use prefixed symbols on AIX (#197), fix static linking on RISC-V (#180),
and match jemalloc's C boolean ABI on Windows (#202). - Link the bundled
jemalloc_s.libdirectly on Windows and keep the_rjem_
prefix when either allocator override feature is enabled (#207). - Document NetBSD support outside CI (#204).
- Remove the
pastedependency (#189).