Displaying 1 result from an estimated 1 matches for "pool_extent".
2004 Feb 06
4
memory reduction
...cvs/lib/pool_alloc.c Wed Dec 31 16:00:00 1969
+++ pool2/lib/pool_alloc.c Thu Feb 5 19:28:58 2004
@@ -0,0 +1,311 @@
+#include "rsync.h"
+
+#define POOL_DEF_EXTENT (32 * 1024)
+
+struct alloc_pool
+{
+ size_t size; /* extent size */
+ size_t quantum; /* allocation quantum */
+ struct pool_extent *live; /* current extent for
+ * allocations */
+ struct pool_extent *free; /* unfreed extent list */
+ void (*bomb)();
+ /* function to call if
+ * malloc fails */
+ int flags;
+
+ /* statistical data */
+ unsigned long e_created; /* extents created */
+ unsigned long e_...