Skip to content

Update to latest jemalloc - #101626

Merged
antonio2368 merged 1 commit into
masterfrom
update-jemalloc-submodule-url
Apr 3, 2026
Merged

antonio2368 merged 1 commit into
masterfrom
update-jemalloc-submodule-url

Conversation

@antonio2368

@antonio2368 antonio2368 commented Apr 2, 2026 •

Copy link
Copy Markdown
Member

Update to the latest jemalloc and switch to our fork to include a fix ClickHouse/jemalloc#4

Closes #93095

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.4.1.556

@clickhouse-gh

clickhouse-gh Bot commented Apr 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [a68f83f]

Summary: ❌

job_name test_name status info comment
Stress test (arm_msan) failure
Server died FAIL cidb
MemorySanitizer: use-of-uninitialized-value (STID: 4179-5154) FAIL cidb

AI Review

Summary

This PR updates contrib/jemalloc to commit b0f2213ab254e6e5c03717726997e27575c7361d, switches the submodule URL to ClickHouse/jemalloc, and aligns contrib/jemalloc-cmake/CMakeLists.txt source entries with the new jemalloc tree. I did not find correctness, safety, performance, or compliance problems in the changed lines.

ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ➖
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ✅
Compilation time ✅
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added pr-not-for-changelog This PR should not be mentioned in the changelog submodule changed At least one submodule changed in this PR. labels Apr 2, 2026
Update `jemalloc-cmake/CMakeLists.txt` source list to match the new
version: remove `batcher.c`, `pai.c`, `prof_threshold.c`; add `conf.c`,
`hpa_central.c`, `hpa_utils.c`, `prof_stack_range.c`,
`thread_event_registry.c`.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@antonio2368
antonio2368 force-pushed the update-jemalloc-submodule-url branch from ae6fbdd to a68f83f Compare April 2, 2026 14:57
@alexey-milovidov alexey-milovidov added the pr-performance Pull request with some performance improvements label Apr 2, 2026
@antonio2368
antonio2368 added this pull request to the merge queue Apr 3, 2026
Merged via the queue into master with commit 4bb7431 Apr 3, 2026
158 of 159 checks passed
@antonio2368
antonio2368 deleted the update-jemalloc-submodule-url branch April 3, 2026 09:08
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Apr 3, 2026
azat added a commit to azat/ClickHouse that referenced this pull request Apr 9, 2026
…emalloc-submodule-url"

This reverts commit 4bb7431, reversing
changes made to aef8cc3.

New version likely has some issues, I have a test that reproduce a
crashes, but with this patch it happens in jemalloc, before (but after ClickHouse#99342)
in random places.

Next step will be to try jemalloc debug mode, since likely when the
crash happens inside jemalloc, it is less likely will help.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog pr-performance Pull request with some performance improvements pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory leak after moving system time backward

4 participants