Skip to content

feat: expose APIs to bind custom memory allocators#3896

Closed
adriangb wants to merge 7 commits into
transact-rs:mainfrom
adriangb:expose-allocators
Closed

feat: expose APIs to bind custom memory allocators#3896
adriangb wants to merge 7 commits into
transact-rs:mainfrom
adriangb:expose-allocators

Conversation

@adriangb
Copy link
Copy Markdown

Related to #3895.
I would like to use jemalloc to diagnose memory leaks and track heap usage.

adriangb added 7 commits June 11, 2025 07:47
The example was causing unit test failures because it was being included
in workspace tests. Moved it to be a standalone workspace member.
Added a CI job to verify both basic and jemalloc custom allocator examples work correctly.
Added a CI job to verify both basic and jemalloc custom allocator examples work correctly.
The doctest example uses jemallocator which is not available in the test
environment. Changed from no_run to ignore to prevent compilation errors.
@adriangb adriangb closed this Jun 14, 2025
@adriangb
Copy link
Copy Markdown
Author

I'm closing this because it's possible to use LD_FLAGS to patch in Jemalloc seamlessly. This may be useful for other allocators or use cases but since I no longer have a use for it I'm going to close this to save reviewers and my time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant