Skip to content

Expose base_alloc as a pool in public API #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: ba_alloc_classes
Choose a base branch
from

Conversation

igchor
Copy link
Owner

@igchor igchor commented Feb 8, 2024

Expose base_alloc as a pool in public API. It can be used by users to allocate metadata for their providers/pools.
The core libumf (libumf.so/.a) accesses the pool API through umf_ba_global_alloc/free functions for allocating umf_memory_pool_t, umf_memory_provider_t etc. to avoid infinite recursion. There is no recursion problem in external libs.

which supports arbitrary size allocations and routes
the alloc requests to specific allocation classes
or to ba_alloc_os.

Use this abstraction instead of a single global pool
of fixed size.
@igchor igchor force-pushed the ba_alloc_classes branch 6 times, most recently from 39bdc38 to 197ab24 Compare February 16, 2024 18:41
igchor pushed a commit that referenced this pull request Mar 5, 2024
Revised API documentation theme
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