[llvm-commits] CVS: llvm-poolalloc/runtime/FL2Allocator/FreeListAllocator.cpp PoolAllocator.h

Chris Lattner lattner at cs.uiuc.edu
Wed Mar 2 08:15:32 PST 2005



Changes in directory llvm-poolalloc/runtime/FL2Allocator:

FreeListAllocator.cpp updated: 1.34 -> 1.35
PoolAllocator.h updated: 1.17 -> 1.18
---
Log message:

Return the pool base from poolinit_pc.  


---
Diffs of the changes:  (+4 -3)

 FreeListAllocator.cpp |    3 ++-
 PoolAllocator.h       |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)


Index: llvm-poolalloc/runtime/FL2Allocator/FreeListAllocator.cpp
diff -u llvm-poolalloc/runtime/FL2Allocator/FreeListAllocator.cpp:1.34 llvm-poolalloc/runtime/FL2Allocator/FreeListAllocator.cpp:1.35
--- llvm-poolalloc/runtime/FL2Allocator/FreeListAllocator.cpp:1.34	Wed Mar  2 10:00:28 2005
+++ llvm-poolalloc/runtime/FL2Allocator/FreeListAllocator.cpp	Wed Mar  2 10:15:19 2005
@@ -705,7 +705,7 @@
 static PoolSlab *Pools[4] = { 0, 0, 0, 0 };
 
 
-void poolinit_pc(PoolTy *Pool, unsigned NodeSize, unsigned ObjAlignment) {
+void *poolinit_pc(PoolTy *Pool, unsigned NodeSize, unsigned ObjAlignment) {
   poolinit(Pool, NodeSize, ObjAlignment);
   Pool->isPtrCompPool = true;
 
@@ -729,6 +729,7 @@
                         Pool->Slabs, (char*)Pool->Slabs+POOLSIZE));
   }
   PoolSlab::create_for_ptrcomp(Pool, Pool->Slabs, POOLSIZE);
+  return Pool->Slabs;
 }
 
 void pooldestroy_pc(PoolTy *Pool) {


Index: llvm-poolalloc/runtime/FL2Allocator/PoolAllocator.h
diff -u llvm-poolalloc/runtime/FL2Allocator/PoolAllocator.h:1.17 llvm-poolalloc/runtime/FL2Allocator/PoolAllocator.h:1.18
--- llvm-poolalloc/runtime/FL2Allocator/PoolAllocator.h:1.17	Tue Mar  1 22:51:35 2005
+++ llvm-poolalloc/runtime/FL2Allocator/PoolAllocator.h	Wed Mar  2 10:15:19 2005
@@ -128,8 +128,8 @@
 
   // Pointer Compression runtime library.  Most of these are just wrappers
   // around the normal pool routines.
-  void poolinit_pc(PoolTy *Pool, unsigned NodeSize,
-                   unsigned ObjAlignment);
+  void *poolinit_pc(PoolTy *Pool, unsigned NodeSize,
+                    unsigned ObjAlignment);
   void pooldestroy_pc(PoolTy *Pool);
   unsigned long poolalloc_pc(PoolTy *Pool, unsigned NumBytes);
   void poolfree_pc(PoolTy *Pool, unsigned long Node);






More information about the llvm-commits mailing list