microsoft / microsoft/mimalloc

Notify huge and giant allocations through callback

Open
#248 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
13.4k
Forks
1.2k
Avg merge
4d 45m
Merged PRs (30d)
13

Description

Hi,

I am new to mimalloc, but I'm loving it already.

I read the mimalloc paper and I understand mimalloc purpose is to improve allocation performance for not too big allocations. I think it would be useful to be able to register a callback that notifies you when you have allocations considered huge and giant. I already tried this and it helped me find some places where we could use another allocator specific for those cases.

It would be even better if you could provide the memory for those allocations through the callback, although mimalloc would keep control of when to alloc and free. This could be like being able to extend mimalloc for huge and giant cases and it would be really nice in some applications.

What do you think?

Thanks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Begin by locating the huge and giant allocation paths in mimalloc and determine the callback and externally supplied memory semantics before proposing an API. Done would require an agreed design and corresponding implementation and tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.