[llvm-commits] CVS: poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp
John Criswell
criswell at cs.uiuc.edu
Fri Nov 14 16:37:01 PST 2003
Changes in directory poolalloc/runtime/FreeListAllocator:
PoolAllocator.cpp updated: 1.30 -> 1.31
---
Log message:
Do not set the number of nodes per slab to the maximum if we're allocating
an array that fits within a page. The array might have larger nodes.
---
Diffs of the changes: (+4 -1)
Index: poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp
diff -u poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp:1.30 poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp:1.31
--- poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp:1.30 Fri Nov 14 16:13:16 2003
+++ poolalloc/runtime/FreeListAllocator/PoolAllocator.cpp Fri Nov 14 16:36:06 2003
@@ -92,7 +92,10 @@
//
// Bump the number of nodes in the slab up to the maximum.
//
- NodesPerSlab = MaxNodesPerPage;
+ if (NodesPerSlab == 0)
+ {
+ NodesPerSlab = MaxNodesPerPage;
+ }
}
NewSlab->NodesPerSlab = NodesPerSlab;
More information about the llvm-commits
mailing list