Skip to content

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

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

test(arena2): add testing for 32 bit system to alloc_dealloc#48
shruti2522 wants to merge 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!

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