microsoft / microsoft/snmalloc

Extend secondary allocation support

Open
#740 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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). refill will add at most request entries to the freelist, removes the count of added entries from request.
  • Using modified refill adapt 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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.