Skip to content

feat(mempool3): add max_heap_size config option#72

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

feat(mempool3): add max_heap_size config option#72
shruti2522 wants to merge 1 commit intoboa-dev:mainfrom
shruti2522:max_heap_size

Conversation

@shruti2522
Copy link
Copy Markdown
Contributor

related to #69
add configurable max_heap_size option to mempool3

  • Add max_heap_size: usize field to PoolAllocator
  • Implement with_max_heap_size(u64) method with saturation on 32 bit platforms
  • Add abort_on_alloc_failure() function to handle OS malloc() failures

arena2 support will be added in a follow up PR

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