aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pool_alloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed a bunch of "warn_unused_result" compiler warnings.Wayne Davison2008-11-091-12/+21
|
* Use PTR_ADD for the new instances of void-pointer arithmetic.Wayne Davison2008-07-211-5/+5
|
* Changed the POOL_QALIGN flag to POOL_NO_QALIGN, reversing the settingWayne Davison2008-07-191-5/+14
| | | | | | (making pools aligned by default). Added the missing code to make the documented behavior of pool_free() with a NULL addr work. Updated the pool_alloc.3 manpage.
* Improved the alignment code and changed POOL_APPEND to POOL_PREPEND.Wayne Davison2008-07-181-61/+83
|
* In pool_free_old(), one code path was not clearing a "next" pointer,Wayne Davison2007-08-211-0/+1
| | | | so the code could try to free an extent twice in certain circumstances.
* Fix pool_create() to honor the POOL_INTERN flag.Wayne Davison2007-08-211-1/+1
| | | | (Thanks to Brion Vibber.)
* Decided against the last change.Wayne Davison2007-06-061-7/+1
|
* Allow a NULL address to be passed to pool_free_old() to indicate thatWayne Davison2007-06-061-1/+7
| | | | it should free all old mem and reset to an empty state.
* Added pool_free_old() and pool_boundary() functions to add a way toWayne Davison2007-05-291-53/+103
| | | | free all wholly affected extents older than a particular point in time.
* Tweaked a variable and a label to make them less confusing.Wayne Davison2007-05-291-6/+6
|
* - Fixed a bug where a pool_free() on the most-recently allocated poolWayne Davison2007-05-291-28/+34
| | | | | | | | | | item was trying to make that memory available to the pool, but it failed to adjust the right variable. - Fixed a bug in pool_free() where the return of the entire live extent back to unallocated status did not obey POOL_CLEAR. - Use the new() and new_array() functions instead of malloc(). - Changed the sqew variable to skew. - Some other minor formatting tweaks.
* Added "const" to appropriate char pointers.Wayne Davison2006-11-191-3/+2
|
* Changed strcpy() calls into strlcpy() calls, just to be extra safe.Wayne Davison2006-10-131-1/+1
|
* Twiddled some brace positions and removed a superfluous ';' in a macro.Wayne Davison2005-11-141-43/+19
|
* Use int64 instead of uint64.Wayne Davison2005-01-201-5/+5
|
* Missed one void-pointer-arithmetic case.Wayne Davison2004-04-091-1/+1
|
* AIX's cc was complaining about the void* arithmetic.Wayne Davison2004-04-091-6/+10
|
* Another attempt at measuring the minimum alignment for a system.Wayne Davison2004-02-101-1/+6
|
* Trying a different MINALIGN because of core dumps on the sparc-64Wayne Davison2004-02-101-1/+1
| | | | build-farm machines.
* Revert pool_alloc's use of bomb if pool == NULL.J.W. Schultz2004-02-101-6/+1
|
* If we call pool_alloc() on a NULL pool, bomb out with an error.Wayne Davison2004-02-101-1/+6
|
* Changed a while loop to a for loop.Wayne Davison2004-02-101-5/+3
|
* Added allocation pool code.J.W. Schultz2004-02-101-0/+297