Mesh icon indicating copy to clipboard operation
Mesh copied to clipboard

Fix definition of MiniHeap::bytesFree

Open aneeshdurg opened this issue 1 year ago • 0 comments

Previously MiniHeap::bytesFree was reporting the bytes allocated, not the bytes free. This was impacting GlobalHeap::allocSmallMiniheaps which was always seeing bytesFree() return 0, and thus was always allocating the maximum number of MiniHeaps instead of stopping at bytesFree >= kMiniheapRefillGoalSize

aneeshdurg avatar Jan 27 '24 20:01 aneeshdurg