]> git.ipfire.org Git - thirdparty/git.git/commit
Round out memory pool allocations in fast-import to pointer sizes.
authorShawn O. Pearce <spearce@spearce.org>
Thu, 24 Aug 2006 08:46:29 +0000 (04:46 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 14 Jan 2007 07:15:06 +0000 (02:15 -0500)
commit8d8928b0511313ba1740d39c3920f8f12f36a10a
tree0eda41860d16d709cbc39be59732405691190574
parent41e5257fcf4db31dfa2576aac1f50b140f2bb058
Round out memory pool allocations in fast-import to pointer sizes.

Some architectures (e.g. SPARC) would require that we access pointers
only on pointer-sized alignments.  So ensure the pool allocator
rounds out non-pointer sized allocations to the next pointer so we
don't generate bad memory addresses.  This could have occurred if
we had previously allocated an atom whose string was not a whole
multiple of the pointer size, for example.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c