Skip to content

move arena3 to mempool3#32

Open
shruti2522 wants to merge 1 commit intoboa-dev:mainfrom
shruti2522:mempool3
Open

move arena3 to mempool3#32
shruti2522 wants to merge 1 commit intoboa-dev:mainfrom
shruti2522:mempool3

Conversation

@shruti2522
Copy link
Contributor

moved arena3 to mempool3 as discussed in PR #15, since the allocator supports individual slot deallocation via a free list and bitmap tracking, which is characteristic of a mempool rather than an arena

@shruti2522 shruti2522 marked this pull request as ready for review March 6, 2026 07:07
Copy link
Member

@nekevss nekevss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is replacing arena3, can you also remove arena3 at the same time.

}
}

/// SlotPool ///
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: don't use this format for sections.

This will probably break CI on main because triple slash is for documentation. Switch to something like:

// ==== SlotPool ==== //

This may need to be done in a few places

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed it. Since this issue seems to exist in other places across the codebase as well, I think it makes sense to open a separate follow up PR to audit and fix all of those

);

// guess the slot count (ignoring bitmap size), size the bitmap based on that guess
// (rounded up to 64 bit words), then subtract the bitmap size from the total capacity to get the real slot count
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the biggest issue here for me is referring to things as words. It's overloading the term words here. Can you switch the language to just bits or bytes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated it to bytes and chunks

@shruti2522 shruti2522 mentioned this pull request Mar 7, 2026
@shruti2522 shruti2522 force-pushed the mempool3 branch 3 times, most recently from 1a5ed92 to a664c65 Compare March 7, 2026 15:38
@shruti2522
Copy link
Contributor Author

As this is replacing arena3, can you also remove arena3 at the same time.

Removed, I could have sworn I already removed it but I guess I missed it 😅

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.

2 participants