1
0
mirror of https://github.com/git/git.git synced 2024-09-28 08:49:45 +02:00
git/vcs-svn
Jonathan Nieder deadcef4c1 vcs-svn: replace buffer_read_string memory pool with a strbuf
obj_pool is inherently global and does not use the standard growing
factor alloc_nr, which makes it feel out of place in the git codebase.
Plus it is overkill for this application: all that is needed is a
buffer that can grow between requests to accomodate larger strings.
Use a strbuf instead.

As a side effect, this improves the error handling: allocation
failures will result in a clean exit instead of segfaults.  It would
be nice to add a test case (using ulimit or failmalloc) but that can
wait for another day.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
2011-02-26 04:57:58 -06:00
..
fast_export.c
fast_export.h
LICENSE
line_buffer.c vcs-svn: replace buffer_read_string memory pool with a strbuf 2011-02-26 04:57:58 -06:00
line_buffer.h
line_buffer.txt
obj_pool.h
repo_tree.c
repo_tree.h
string_pool.c
string_pool.h
string_pool.txt
svndump.c
svndump.h
trp.h
trp.txt