Skip to content

feat(arena2): implement dynamic alignment for ArenaAllocator #47

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

feat(arena2): implement dynamic alignment for ArenaAllocator #47
shruti2522 wants to merge 1 commit intoboa-dev:mainfrom
shruti2522:min-align

Conversation

@shruti2522
Copy link
Contributor

Replaced hardcoded arena alignment with dynamic type based alignment with min_alignment configuration (arena2)

/// Initialize a fresh arena.
pub fn initialize_new_arena(
&mut self,
required_alignment: usize,
Copy link
Member

Choose a reason for hiding this comment

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

issue: I think this should really just be a const parameter vs. a regular parameter.

Had you looked at using const parameters for this?

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