path: root/.gitignore
diff options
authorDavid Barr <>2010-08-09 22:11:11 (GMT)
committerJunio C Hamano <>2010-08-15 02:35:37 (GMT)
commit4709455db3891f6cad9a96a574296b4926f70cbe (patch)
treef97a6a3f25259a67427e48bc85433173006a4e6b /.gitignore
parent3f527372d9ec6d7b6890773e41c4b3542d7ad451 (diff)
Add memory pool library
Add a memory pool library implemented using C macros. The obj_pool_gen() macro creates a type-specific memory pool. The memory pool library is distinguished from the existing specialized allocators in alloc.c by using a contiguous block for all allocations. This means that on one hand, long-lived pointers have to be written as offsets, since the base address changes as the pool grows, but on the other hand, the entire pool can be easily written to the file system. This could allow the memory pool to persist between runs of an application. For the svn importer, such a facility is useful because each svn revision can copy trees and files from any previous revision. The relevant information for all revisions has to persist somehow to support incremental runs. [rr: minor cleanups] [jn: added tests; removed file system backing for now] Signed-off-by: David Barr <> Signed-off-by: Ramkumar Ramachandra <> Signed-off-by: Jonathan Nieder <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to '.gitignore')
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 14e2b6b..1e64a6a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -167,6 +167,7 @@