microsoft / microsoft/mimalloc
How to set options to mimalloc before mi_process_init
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 13.4k
- Forks
- 1.2k
- Avg merge
- 4d 45m
- Merged PRs (30d)
- 13
Description
Maybe is my misunderstanding of mimalloc but most options you would want to set before mi_process_init runs (like to reserve memory and etc) how to accomplish that? No matter where I try to put the options it seems like mi_process_init had already happened.
Maybe its related to the difference between mi_option_set and mi_option_set_default, which is also not explained in the docs.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the documentation for mi_option_set and mi_option_set_default and tracing when mi_process_init runs relative to those calls. Document how options such as memory reservation can be set before initialization, and clarify the difference between the two option functions with a minimal usage example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- operating-systems
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100