Skip to content
Merged
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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 0.7.0 - 2026-05-25
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Avoid a future-dated release header before publish.

Line 1 uses 2026-05-25, while this PR was opened on 2026-05-24. If release is not actually published on May 25, 2026, this can misstate chronology. Consider using an Unreleased heading until publish day or update the date at release cut time.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CHANGELOG.md` at line 1, The release header in CHANGELOG.md ("# 0.7.0 -
2026-05-25") is future-dated; replace the date portion with either "Unreleased"
(e.g. "# 0.7.0 - Unreleased") while the PR is open or update it to the actual
publish date at release time so chronology is correct; locate and edit the
header line starting with "# 0.7.0" to make this change.


- Reverse order of MAKEFLAGS priority (#152)
- Define ALIGNOF_MAX_ALIGN_T for riscv32 (#153)
- Remove build directory once build of `jemalloc-sys` finishes (#119)
- Fix cross-compile for tier-3 riscv64a23 target (#141)
- sys: support *-windows-gnullvm targets (#150)
- Propagate LDFLAGS, if present (#155)
- jemalloc-ctl: fix invalid update implementation
- add new free ffi
- Update jemalloc to 5.3.1 (#161)
- Add profiling_libunwind feature (#159)
- passthrough cc env/args using native cc features (#158)

# 0.6.1 - 2025-10-15

- Fix compiler and clippy warnings (#105)
Expand Down
6 changes: 3 additions & 3 deletions jemalloc-ctl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tikv-jemalloc-ctl"
version = "0.6.1"
version = "0.7.0"
authors = [
"Steven Fackler <sfackler@gmail.com>",
"Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>",
Expand All @@ -26,12 +26,12 @@ is-it-maintained-open-issues = { repository = "tikv/jemallocator" }
maintenance = { status = "actively-developed" }

[dependencies]
tikv-jemalloc-sys = { path = "../jemalloc-sys", version = "0.6.1" }
tikv-jemalloc-sys = { path = "../jemalloc-sys", version = "0.7.0" }
libc = { version = "0.2", default-features = false }
paste = "1"

[dev-dependencies]
tikv-jemallocator = { path = "../jemallocator", version = "0.6.1" }
tikv-jemallocator = { path = "../jemallocator", version = "0.7.0" }

[features]
default = []
Expand Down
2 changes: 1 addition & 1 deletion jemalloc-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tikv-jemalloc-sys"
version = "0.6.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8"
version = "0.7.0+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check jemalloc submodule commit hash
cd jemalloc-sys/jemalloc
CURRENT_COMMIT=$(git rev-parse HEAD)
echo "Current jemalloc submodule commit: $CURRENT_COMMIT"

# Extract version metadata from Cargo.toml
cd ../..
VERSION_METADATA=$(grep -m1 "^version = " jemalloc-sys/Cargo.toml | sed 's/.*+//' | sed 's/".*//')
echo "Version metadata: $VERSION_METADATA"

# Check if commit hash in metadata matches submodule
if echo "$VERSION_METADATA" | grep -q "$CURRENT_COMMIT"; then
  echo "✓ Version metadata matches submodule commit"
else
  echo "✗ Version metadata does NOT match submodule commit"
  echo "  Expected metadata to contain: $CURRENT_COMMIT"
fi

Repository: tikv/jemallocator

Length of output: 329


Align jemalloc-sys/Cargo.toml version metadata with current jemalloc submodule commit

jemalloc-sys/Cargo.toml (line 3) still has version = "0.7.0+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8", but jemalloc-sys/jemalloc HEAD is 2f9c6b3fdf7ecb69e691bb0334a54fb41fa8eeba, so the +g... metadata commit hash needs updating to match the submodule.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@jemalloc-sys/Cargo.toml` at line 3, Update the version metadata in
jemalloc-sys/Cargo.toml so the commit hash suffix on the version string matches
the current jemalloc submodule HEAD; specifically edit the version value for the
symbol `version` (currently
"0.7.0+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8") and replace the
trailing g... hash with the submodule commit
`2f9c6b3fdf7ecb69e691bb0334a54fb41fa8eeba`, keeping the rest of the version
string identical.

authors = [
"Alex Crichton <alex@alexcrichton.com>",
"Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>",
Expand Down
6 changes: 3 additions & 3 deletions jemallocator-global/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tikv-jemallocator-global"
# Make sure to update the version in the readme as well:
version = "0.6.0"
version = "0.7.0"
authors = [
"Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>",
"The TiKV Project Developers",
Expand All @@ -26,7 +26,7 @@ is-it-maintained-open-issues = { repository = "tikv/jemallocator" }
maintenance = { status = "actively-developed" }

[dependencies]
tikv-jemallocator = { version = "0.6.1", path = "../jemallocator", optional = true }
tikv-jemallocator = { version = "0.7.0", path = "../jemallocator", optional = true }
cfg-if = "0.1"

[features]
Expand All @@ -38,7 +38,7 @@ force_global_jemalloc = [ "tikv-jemallocator" ]
# for a particular target, white-list the target explicitly here:

[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))'.dependencies]
tikv-jemallocator = { version = "0.6.1", path = "../jemallocator", optional = false }
tikv-jemallocator = { version = "0.7.0", path = "../jemallocator", optional = false }

# FIXME: https://github.com/gnzlbg/jemallocator/issues/91
# [target.'cfg(target_os = "windows")'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion jemallocator-global/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Add it as a dependency:
```toml
# Cargo.toml
[dependencies]
tikv-jemallocator-global = "0.6.0"
tikv-jemallocator-global = "0.7"
```

and `jemalloc` will be used as the `#[global_allocator]` on targets that support
Expand Down
4 changes: 2 additions & 2 deletions jemallocator-global/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//! Sets `jemalloc` as the `#[global_allocator]` on targets that support it.
//!
//! Just add `jemallocator-global` as a dependency:
//! Just add `tikv-jemallocator-global` as a dependency:
//!
//! ```toml
//! # Cargo.toml
//! [dependencies]
//! jemallocator-global = "0.6.0"
//! tikv-jemallocator-global = "0.7"
//! ```
//!
//! and `jemalloc` will be used as the `#[global_allocator]` on targets that
Expand Down
6 changes: 3 additions & 3 deletions jemallocator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tikv-jemallocator"
# Make sure to update the version in the README as well:
version = "0.6.1"
version = "0.7.0"
authors = [
"Alex Crichton <alex@alexcrichton.com>",
"Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>",
Expand Down Expand Up @@ -37,12 +37,12 @@ name = "ffi"
required-features = ["stats"]

[dependencies]
tikv-jemalloc-sys = { path = "../jemalloc-sys", version = "0.6.1", default-features = false }
tikv-jemalloc-sys = { path = "../jemalloc-sys", version = "0.7.0", default-features = false }
libc = { version = "^0.2.8", default-features = false }

[dev-dependencies]
paste = "1"
tikv-jemalloc-ctl = { path = "../jemalloc-ctl", version = "0.6.1" }
tikv-jemalloc-ctl = { path = "../jemalloc-ctl", version = "0.7.0" }

[features]
default = ["background_threads_runtime_support"]
Expand Down
2 changes: 1 addition & 1 deletion jemallocator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ To use `tikv-jemallocator` add it as a dependency:
[dependencies]

[target.'cfg(not(target_env = "msvc"))'.dependencies]
tikv-jemallocator = "0.6"
tikv-jemallocator = "0.7"
```

To set `tikv_jemallocator::Jemalloc` as the global allocator add this to your project:
Expand Down
Loading