Fix for static use in inline - getting rid of static usage
authorNikhil Jain <nikhil@illinois.edu>
Sun, 1 Jan 2012 21:08:00 +0000 (15:08 -0600)
committerNikhil Jain <nikhil@illinois.edu>
Sun, 1 Jan 2012 21:08:00 +0000 (15:08 -0600)
src/arch/util/mempool.c
src/arch/util/mempool.h
src/conv-core/isomalloc.c

index c22ed57099e69ca9837cd0c819e0a6a46790ba9f..de19805dcdb7169f636b76b8bd5e2fa56c21c3d0 100644 (file)
@@ -30,6 +30,12 @@ Heavily modified by Nikhil Jain 11/28/2011
 #endif
 
 #include "mempool.h"
+int cutOffPoints[] = {64,128,256,512,1024,2048,4096, 8192,16384,32768,
+                      65536,131072,262144,524288,1048576,2097152,4194304,
+                      8388608,16777216,33554432,67108864,134217728,268435456,
+                      536870912};
+
+
 
 INLINE_KEYWORD int which_pow2(size_t size)
 {
index 0337ca180f1db36a4a67a1a7ab5fed3eca3a758a..0a28cf65f223eff9c21783224f0a12f4a4f80846 100644 (file)
@@ -19,12 +19,6 @@ typedef void * (* mempool_newblockfn)(size_t *size, mem_handle_t *mem_hndl, int
 typedef void (* mempool_freeblock)(void *ptr, mem_handle_t mem_hndl);
 
 #define cutOffNum 24 
-static int cutOffPoints[] = {64,128,256,512,1024,2048,4096, 8192,16384,32768,
-                      65536,131072,262144,524288,1048576,2097152,4194304,
-                      8388608,16777216,33554432,67108864,134217728,268435456,
-                      536870912};
-
-
 
 //header of an free slot
 typedef struct slot_header_
index 6daa15c96b4c49a52bf93e1648440ea170a2361b..5d15a62d07d57df411739b0ca30eca77cb20e317 100644 (file)
@@ -69,6 +69,7 @@ added by Ryan Mokos in July 2008.
 
 #if CMK_USE_MEMPOOL_ISOMALLOC
 #include "mempool.h"
+extern int cutOffPoints[cutOffNum];
 #endif 
 
 static int _sync_iso = 0;