Changeset: bbf7821a43c4 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=bbf7821a43c4
Modified Files:
        gdk/gdk_utils.c
Branch: default
Log Message:

Some variables can be declared static.


diffs (38 lines):

diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c
--- a/gdk/gdk_utils.c
+++ b/gdk/gdk_utils.c
@@ -283,13 +283,13 @@ BATSIGinit(void)
 /* memory thresholds; these values some "sane" constants only, really
  * set in GDKinit() */
 size_t GDK_mmap_minsize = GDK_VM_MAXSIZE;
-size_t GDK_mem_maxsize_max = GDK_VM_MAXSIZE;
+static size_t GDK_mem_maxsize_max = GDK_VM_MAXSIZE;
 size_t GDK_mem_maxsize = GDK_VM_MAXSIZE;
 size_t GDK_mem_bigsize = 1 << 30;
 size_t GDK_vm_maxsize = GDK_VM_MAXSIZE;
 
-int GDK_vm_allocs = 0;
-int GDK_mem_allocs = 0;
+static int GDK_vm_allocs = 0;
+static int GDK_mem_allocs = 0;
 int GDK_vm_trim = 1;
 
 /* at least each 50M of memory increase, BBPtrim is run */
@@ -329,7 +329,7 @@ int GDK_vm_trim = 1;
                }                                       \
        } while (0)
 
-volatile size_t GDK_mallocedbytes_estimate = 0;
+static volatile size_t GDK_mallocedbytes_estimate = 0;
 static ssize_t GDK_mem_cursize = 0;
 static ssize_t GDK_vm_cursize = 0;
 
@@ -524,7 +524,7 @@ GDKmem_heapinuse(void)
        return GDK_mallocedbytes_estimate;
 }
 
-volatile int GDK_heapcheck_last = 0;
+static volatile int GDK_heapcheck_last = 0;
 
 static inline void
 GDKmem_heapcheck(int t)
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to