Skip to content

common: define kMiniHeapSize and use it in MeshableArena's CheapHeap#108

Merged
bpowers merged 1 commit intoplasma-umass:masterfrom
bpowers:bobby/miniheap-size-const
Apr 6, 2024
Merged

common: define kMiniHeapSize and use it in MeshableArena's CheapHeap#108
bpowers merged 1 commit intoplasma-umass:masterfrom
bpowers:bobby/miniheap-size-const

Conversation

@bpowers
Copy link
Copy Markdown
Member

@bpowers bpowers commented Apr 6, 2024

It was surprising and frustrating to find a random 64 in MeshableArena's:

  CheapHeap<64, kArenaSize / kPageSize> _mhAllocator{};

is tied to the size of MiniHeap. Make that explicit by defining a constant, and ensuring the constant stays in line with the size of MiniHeap through the use of a static_assert.

Updates #104

@bpowers bpowers merged commit 0a4294e into plasma-umass:master Apr 6, 2024
@bpowers bpowers deleted the bobby/miniheap-size-const branch March 25, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant