cargo tikv-jemallocator 0.8.0

45 minutes ago

Upgrade notes

  • The minimum supported Rust version is 1.72 (#201). The optional alloc_trait
    feature implements core::alloc::Allocator on Rust 1.100 and later (#188).
  • Bundled jemalloc is now 5.4.0 (#185). It silently ignores seven retired
    malloc_conf settings, including tcache_nslots_small_max. The corresponding
    opt.* queries return ENOENT. Full list in the jemalloc ChangeLog.
  • In tikv-jemalloc-ctl, constructing typed names and MIBs from raw input
    now requires unsafe. Name::new returns a Result, and Name::mib()
    determines the MIB length from the key. Raw string reads, raw string updates,
    and built-in name() accessors return &CStr. Raw string writes require
    unsafe (#201, #203).
  • ThreadLocal::get and prof_reset now require unsafe. Statistics printing
    requires use_std. For full output, use the unsafe stats_print_with_environment
    function and enable stats for runtime metrics (#201).

Allocator and control APIs

  • Bundled jemalloc includes fast paths for mallocx and dallocx (#185).
    The allocator honors the target's allocation alignment and custom jemalloc
    quantum settings (#188).
  • Add thread::tcache_enabled to 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 debug feature
    is off, build bundled jemalloc at level 3. On GCC and Clang, omit debug
    information when the Cargo profile disables it. Explicit CFLAGS take
    precedence (#204, #205).
  • Enabling background_threads also enables the allocator's
    background_threads_runtime_support feature (#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.lib directly on Windows and keep the _rjem_
    prefix when either allocator override feature is enabled (#207).
  • Document NetBSD support outside CI (#204).
  • Remove the paste dependency (#189).

Don't miss a new tikv-jemallocator release

NewReleases is sending notifications on new releases.