Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add heap allocation to lib/support/Pool.h #11698

Merged
merged 6 commits into from
Nov 19, 2021

Commits on Nov 15, 2021

  1. Add heap allocation to lib/support/Pool.h

    #### Problem
    
    We have too many pool allocators.
    
    Previous PRs (project-chip#11428, project-chip#11487) transitionally use `BitMapObjectPool`
    where previously `System::ObjectPool` had been used, but this lost
    the ability to configure heap allocation.
    
    #### Change overview
    
    - Add a heap allocator (from project-chip#9590)
    - Add allocation selection (from project-chip#11371)
    - Use this for `System::Timer` (complementing project-chip#11487)
    
    Co-authored-by: Zang MingJie <zealot0630@gmail.com>
    Co-authored-by: C Freeman <cecille@google.com>
    
    A future PR will use this for Inet pools (complementing project-chip#11428);
    that is not done here because it would conflict with other Inet
    changes under way.
    
    #### Testing
    
    Added heap versions of unit tests in TestPool. (A future PR will add
    `System::Object`-style statistics and re-unify most of these tests.)
    
    CI should show `.bss` decreases corresponding to increases in project-chip#11487.
    kpschoedel committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    be9c07f View commit details
    Browse the repository at this point in the history
  2. Revisions

    - Factor out common code.
    - Use a heap-allocated list to track heap-allocated objects.
    - More unit tests.
    kpschoedel committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    ca2f2ed View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2021

  1. Configuration menu
    Copy the full SHA
    0c9ab88 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9d158a2 View commit details
    Browse the repository at this point in the history
  3. restyle

    kpschoedel committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    b21add7 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2021

  1. Configuration menu
    Copy the full SHA
    3758224 View commit details
    Browse the repository at this point in the history