Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed a bunch of "warn_unused_result" compiler warnings. | Wayne Davison | 2008-11-09 | 1 | -12/+21 |
| | |||||
* | Use PTR_ADD for the new instances of void-pointer arithmetic. | Wayne Davison | 2008-07-21 | 1 | -5/+5 |
| | |||||
* | Changed the POOL_QALIGN flag to POOL_NO_QALIGN, reversing the setting | Wayne Davison | 2008-07-19 | 1 | -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 Davison | 2008-07-18 | 1 | -61/+83 |
| | |||||
* | In pool_free_old(), one code path was not clearing a "next" pointer, | Wayne Davison | 2007-08-21 | 1 | -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 Davison | 2007-08-21 | 1 | -1/+1 |
| | | | | (Thanks to Brion Vibber.) | ||||
* | Decided against the last change. | Wayne Davison | 2007-06-06 | 1 | -7/+1 |
| | |||||
* | Allow a NULL address to be passed to pool_free_old() to indicate that | Wayne Davison | 2007-06-06 | 1 | -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 to | Wayne Davison | 2007-05-29 | 1 | -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 Davison | 2007-05-29 | 1 | -6/+6 |
| | |||||
* | - Fixed a bug where a pool_free() on the most-recently allocated pool | Wayne Davison | 2007-05-29 | 1 | -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 Davison | 2006-11-19 | 1 | -3/+2 |
| | |||||
* | Changed strcpy() calls into strlcpy() calls, just to be extra safe. | Wayne Davison | 2006-10-13 | 1 | -1/+1 |
| | |||||
* | Twiddled some brace positions and removed a superfluous ';' in a macro. | Wayne Davison | 2005-11-14 | 1 | -43/+19 |
| | |||||
* | Use int64 instead of uint64. | Wayne Davison | 2005-01-20 | 1 | -5/+5 |
| | |||||
* | Missed one void-pointer-arithmetic case. | Wayne Davison | 2004-04-09 | 1 | -1/+1 |
| | |||||
* | AIX's cc was complaining about the void* arithmetic. | Wayne Davison | 2004-04-09 | 1 | -6/+10 |
| | |||||
* | Another attempt at measuring the minimum alignment for a system. | Wayne Davison | 2004-02-10 | 1 | -1/+6 |
| | |||||
* | Trying a different MINALIGN because of core dumps on the sparc-64 | Wayne Davison | 2004-02-10 | 1 | -1/+1 |
| | | | | build-farm machines. | ||||
* | Revert pool_alloc's use of bomb if pool == NULL. | J.W. Schultz | 2004-02-10 | 1 | -6/+1 |
| | |||||
* | If we call pool_alloc() on a NULL pool, bomb out with an error. | Wayne Davison | 2004-02-10 | 1 | -1/+6 |
| | |||||
* | Changed a while loop to a for loop. | Wayne Davison | 2004-02-10 | 1 | -5/+3 |
| | |||||
* | Added allocation pool code. | J.W. Schultz | 2004-02-10 | 1 | -0/+297 |