Fix soudness issues in jemalloc bindings #2565
No reviewers
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity!2565
Loading…
Reference in a new issue
No description provided.
Delete branch "jade/jemalloc-issues"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix a whole bunch of soundness issues and potential bugs in jemalloc integration code
@ -223,0 +317,6 @@/// # Safety/// Caller must ensure `key` is an `arena.<i>.*` notification MIB/// (`key.len() >= 2`).// `arena_id()` returns this thread's own valid arena (< narenas < ARENA_LIMIT),// so we skip `validate_arena_id()` to avoid locking `ctl_mtx` on hot paths like// `decay()`.Is this intentionally a comment here instead of a docstring?
Nope, oops
lgtm
@ -335,0 +521,8 @@}}/// # Safety/// Caller must ensure `T` matches the exact C type expected by `key`.// Does not advance `epoch`; callers reading cached `stats.*` must call// `inc_epoch()` explicitly.unsafe fn set<T>(key: &Key, val: T) -> Result<T>I think this comment is meant to be part of the docstring too
cf8d6091f194f5026d57jade/jemalloc-issuesto Fix soudness issues in jemalloc bindings08098c5e88cb9b3e65d0