Skip to content

fix(provider): gate rocksdb jemalloc behind feature flag#23061

Merged
Rjected merged 1 commit intomainfrom
fix/provider-jemalloc-feature-gate
Mar 18, 2026
Merged

fix(provider): gate rocksdb jemalloc behind feature flag#23061
Rjected merged 1 commit intomainfrom
fix/provider-jemalloc-feature-gate

Conversation

@decofe
Copy link
Member

@decofe decofe commented Mar 17, 2026

Closes the issue where reth-provider unconditionally enables rocksdb/jemalloc, making it impossible for downstream crates (e.g. e2e tests) to build without jemalloc.

reth-provider now has a jemalloc feature that gates rocksdb/jemalloc. The feature is propagated through reth-ethereum and bin/reth so existing builds are unaffected — jemalloc is still on by default for the reth binary.

Co-Authored-By: Dan Cline 6798349+Rjected@users.noreply.github.com

Prompted by: Dan

rocksdb's jemalloc feature was unconditionally enabled in reth-provider,
making it impossible for downstream crates to opt out. This gates it
behind a `jemalloc` feature on reth-provider and propagates it through
`reth-ethereum` and `bin/reth`.

Co-Authored-By: Dan Cline <6798349+Rjected@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019cf915-e035-7749-80a8-66176bb08b4c
@github-actions
Copy link
Contributor

⚠️ Changelog not found.

A changelog entry is required before merging. We've generated a suggested changelog based on your changes:

Preview
---
reth: patch
reth-provider: patch
---

Fixed jemalloc feature flag for rocksdb in `reth-provider` by gating it behind an explicit `jemalloc` feature instead of always enabling it. Propagated the new `jemalloc` feature through the `reth` and `reth-ethereum` crate feature trees.

Add changelog to commit this to your branch.

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Mar 17, 2026
@Rjected Rjected added this pull request to the merge queue Mar 18, 2026
Merged via the queue into main with commit f61098e Mar 18, 2026
37 checks passed
@Rjected Rjected deleted the fix/provider-jemalloc-feature-gate branch March 18, 2026 19:10
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants