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

Don't reset too many variables, and reset others to proper initial values.
We don't really want to loose the number of bytes we've allocated,
since we have still allocated them.


diffs (20 lines):

diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c
--- a/gdk/gdk_utils.c
+++ b/gdk/gdk_utils.c
@@ -744,15 +744,11 @@ GDKreset(int status)
                GDK_mmap_minsize_persistent = MMAP_MINSIZE_PERSISTENT;
                GDK_mmap_minsize_transient = MMAP_MINSIZE_TRANSIENT;
                GDK_mmap_pagesize = MMAP_PAGESIZE;
-               GDK_mem_maxsize = GDK_VM_MAXSIZE;
+               GDK_mem_maxsize = (size_t) ((double) MT_npages() * (double) 
MT_pagesize() * 0.815);
                GDK_vm_maxsize = GDK_VM_MAXSIZE;
 
                GDK_vm_trim = 1;
 
-               GDK_mallocedbytes_estimate = 0;
-               GDK_vm_cursize = 0;
-               _MT_pagesize = 0;
-               _MT_npages = 0;
 #ifdef GDK_VM_KEEPHISTO
                memset((char*)GDK_vm_nallocs[MAX_BIT], 0, 
sizeof(GDK_vm_nallocs));
 #endif
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to