[llvm-commits] CVS: poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 14 16:14:02 PST 2003
Changes in directory poolalloc/runtime/FreeListAllocator:
PoolAllocator.cpp updated: 1.29 -> 1.30
---
Log message:
While we're at it, allocate space for the links list as well. This fixes em3d in large problem size
---
Diffs of the changes: (+1 -0)
Index: poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp
diff -u poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp:1.29 poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp:1.30
--- poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp:1.29 Fri Nov 14 16:10:26 2003
+++ poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp Fri Nov 14 16:13:16 2003
@@ -66,6 +66,7 @@
if (NodesPerSlab > MaxNodesPerPage)
{
unsigned NumBytes = sizeof(SlabHeader) + NodeSize * NodesPerSlab;
+ NumBytes += NodesPerSlab * sizeof (NodePointer);
NewSlab = (struct SlabHeader *)GetPages((NumBytes+PageSize-1)/PageSize);
if (NewSlab == NULL)
{
More information about the llvm-commits
mailing list