Skip to content

[WIP] Mimalloc Integration#212

Draft
elazaro-riverside wants to merge 75 commits into
mainfrom
mimalloc_integration
Draft

[WIP] Mimalloc Integration#212
elazaro-riverside wants to merge 75 commits into
mainfrom
mimalloc_integration

Conversation

@elazaro-riverside

Copy link
Copy Markdown
Collaborator

Fill this in at PR stage.

@elazaro-riverside elazaro-riverside added enhancement New feature or request libresolve Related to libresolve component labels Jun 1, 2026
// * - size: number of bytes to copied
// * @return - pointer to the copied string
// * NOTE: Read this link to understand the nature of strdup & strndup
// * https://pubs.opengroup.org/onlineptrpubs/9699919799/functions/strdup.html

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Seems like this change was unintentional...

@elazaro-riverside
elazaro-riverside force-pushed the mimalloc_integration branch 3 times, most recently from 780db71 to 2c1e515 Compare June 15, 2026 14:56
Ethan Lazaro added 22 commits June 30, 2026 13:27
…odifications to the Dockerfile and cargo files to ensure mimalloc source is correctly linked with libresolve.
…alloc archive to cargo so that downstream tests pass.
… compare the mimalloc approach to strict shadow object bounds approach.
… mimalloc or not. If not log it and call libc free.
…ncy. Added debugging statement and logic to use libc free if the allocation is not from mimalloc.
Ethan Lazaro added 22 commits June 30, 2026 13:37
… the pointer is within a mimalloc-owned mem region.
…to return null pointers for pointers that are not allocated by mimalloc.
… in image-histogram is an interior pointer.
… the pointer is in a heap region and then check if it is a base address or offset.
… that are not owned by mimalloc can be freed by their allocators.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request libresolve Related to libresolve component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants