Code

History

Commits on master to lib/pool_alloc.c29
  1. daemon: robustness against malicious-peer protocol inputAndrew Tridgell committed 4 months ago3eeedf8
  2. Introduce PTR_SUBRose committed 3 years agoc9fe6ca
  3. Fix warning about missing bomb(..) prototypeHolger Hoffstätte committed 3 years agoe55b190
  4. Put 0 in parens to silence an Xcode warning.Wayne Davison committed 5 years ago8c3de35
  5. Mention file & line on OOM and overflow errors.Wayne Davison committed 6 years agof47e5a7
  6. Avoid warning about leaked mem (didn't affect rsync's pool use).Wayne Davison committed 7 years agobc7402a
  7. Fixed a bunch of "warn_unused_result" compiler warnings.Wayne Davison committed 18 years ago9411292
  8. Use PTR_ADD for the new instances of void-pointer arithmetic.Wayne Davison committed 18 years ago0566dc5
  9. Changed the POOL_QALIGN flag to POOL_NO_QALIGN, reversing the setting (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.Wayne Davison committed 18 years agofb01d1f
  10. Improved the alignment code and changed POOL_APPEND to POOL_PREPEND.Wayne Davison committed 18 years ago51ce67d
  11. In pool_free_old(), one code path was not clearing a "next" pointer, so the code could try to free an extent twice in certain circumstances.Wayne Davison committed 19 years ago65a22a5
  12. Fix pool_create() to honor the POOL_INTERN flag. (Thanks to Brion Vibber.)Wayne Davison committed 19 years agoa0f7023
  13. Decided against the last change.Wayne Davison committed 19 years ago8b498b9
  14. Allow a NULL address to be passed to pool_free_old() to indicate that it should free all old mem and reset to an empty state.Wayne Davison committed 19 years agoc04af69
  15. Added pool_free_old() and pool_boundary() functions to add a way to free all wholly affected extents older than a particular point in time.Wayne Davison committed 19 years ago676e604
  16. Tweaked a variable and a label to make them less confusing.Wayne Davison committed 19 years ago3fac8ca
  17. - Fixed a bug where a pool_free() on the most-recently allocated pool 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.Wayne Davison committed 19 years agoe3d27df
  18. Added "const" to appropriate char pointers.Wayne Davison committed 19 years ago4a19c3b
  19. Changed strcpy() calls into strlcpy() calls, just to be extra safe.Wayne Davison committed 20 years agoc9bce0b
  20. Twiddled some brace positions and removed a superfluous ';' in a macro.Wayne Davison committed 21 years ago8ea17b5
  21. Use int64 instead of uint64.Wayne Davison committed 21 years ago707415d
  22. Missed one void-pointer-arithmetic case.Wayne Davison committed 22 years ago04575bc
  23. AIX's cc was complaining about the void* arithmetic.Wayne Davison committed 22 years ago71b291d
  24. Another attempt at measuring the minimum alignment for a system.Wayne Davison committed 22 years ago4d4df3c
  25. Trying a different MINALIGN because of core dumps on the sparc-64 build-farm machines.Wayne Davison committed 22 years ago61d35e1
  26. Revert pool_alloc's use of bomb if pool == NULL.J.W. Schultz committed 22 years ago15f85b1
  27. If we call pool_alloc() on a NULL pool, bomb out with an error.Wayne Davison committed 22 years agoaa0b9ca
  28. Changed a while loop to a for loop.Wayne Davison committed 22 years agobe20dc3
  29. Added allocation pool code.J.W. Schultz committed 22 years ago7efdcf3