microsoft / microsoft/snmalloc
Extend secondary allocation support
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2k
- Forks
- 138
- Avg merge
- 11h 19m
- Merged PRs (30d)
- 5
Description
Here are some thoughts for things we can do
- Add support for refilling the free list to a particular size, e.g. refill(LocalCache&, sizeclass, size_t& request).
refillwill add at mostrequestentries to the freelist, removes the count of added entries fromrequest. - Using modified
refilladapt GWP-Asan sampling to accurately reflect the sampling request from the user. - Add documentation for building with GWP-Asan.
- Automate downloading GWP-Asan.
- Provide support for Windows using detours, and a secondary allocator of the original Windows Heap.
- Build sampling profiler using secondary allocator.
- Add C++ Concept
- Enable out of tree override of secondary allocator.
This is a bit of a brain dump of things I think this feature enables. My thought is to try to get a reasonable number of these together, and release as 0.8.0.
@SchrodingerZhu, or anyone else, please feel free to add your own ideas on use cases.
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 reviewing the existing secondary allocator and the completed out-of-tree override support, then separate the unchecked ideas into individually scoped issues. The payload names no files, tests, or entry points, and completion is not defined beyond implementing a selected subset of the proposed allocator, GWP-Asan, Windows, profiling, and documentation work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100