Skip to content

test(arena2): add testing for 32 bit system to alloc_dealloc#48

Merged
nekevss merged 1 commit intoboa-dev:mainfrom
shruti2522:32-bit
Mar 14, 2026
Merged

test(arena2): add testing for 32 bit system to alloc_dealloc#48
nekevss merged 1 commit intoboa-dev:mainfrom
shruti2522:32-bit

Conversation

@shruti2522
Copy link
Contributor

added 32 bit testing for alloc_dealloc in arena2

fn alloc_dealloc() {
// Let's just allocate with a half a Kb per arena
let mut allocator = ArenaAllocator::default().with_arena_size(512);
// Ensure the arena holds exactly `BATCH` `ArenaHeapItem<i32>` values
Copy link
Member

Choose a reason for hiding this comment

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

nit: add a note that this is done to test 32 bit systems

We should be clear about the reason we are doing this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

@nekevss nekevss merged commit 67e941d into boa-dev:main Mar 14, 2026
4 checks passed
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