Skip to content

Conversation

@8dcc
Copy link
Owner

@8dcc 8dcc commented Dec 27, 2024

Actually, it adds support for pool "expansion", rather than "resizing".

General changes:

  • Change the layout and size of internal structures.
  • Clean the library comments (in the source).
  • Add pool_resize function (might be renamed in the near future).
  • Update tests in main.c.

8dcc added 8 commits October 26, 2024 19:09
Since there is an article explaining this whole process:
https://8dcc.github.io/programming/pool-allocator.html
Using a 'LinkedPtr' structure, as explained in my blog article.

* Remove 'pool_ext_memcpy' global.
* Add 'LinkedPtr' structure, use inside 'Pool'.
* Remove 'pool_sz' member of 'Pool'.
* Rename some local variables.
* Update 'pool_new' and 'pool_free' functions to support new 'LinkedPtr' layout.
* Update 'pool_resize' entirely'.
Add missing includes.
@8dcc 8dcc merged commit 2093d46 into main Dec 27, 2024
@8dcc 8dcc deleted the pool-resize branch December 27, 2024 22:57
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