Changeset: 84d7a2c5ab9b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/84d7a2c5ab9b
Modified Files:
        gdk/gdk_heap.c
Branch: default
Log Message:

Remove debug prints.


diffs (30 lines):

diff --git a/gdk/gdk_heap.c b/gdk/gdk_heap.c
--- a/gdk/gdk_heap.c
+++ b/gdk/gdk_heap.c
@@ -164,8 +164,6 @@ HEAPalloc(Heap *h, size_t nitems, size_t
        if (!GDKinmemory(h->farmid) && h->base == NULL) {
                char *nme;
 
-               if (h->size < (h->farmid == 0 ? GDK_mmap_minsize_persistent : 
GDK_mmap_minsize_transient))
-                       fprintf(stderr, "#%s:  emergency mmap %11zu %11zu 
%11zu\n", __func__, h->size, (size_t) GDKmem_cursize(), (size_t) 
GDKvm_cursize());
                nme = GDKfilepath(h->farmid, BATDIR, h->filename, NULL);
                if (nme == NULL)
                        return GDK_FAIL;
@@ -274,8 +272,6 @@ HEAPextend(Heap *h, size_t size, bool ma
                        /* too big: convert it to a disk-based temporary heap */
                        bool existing = false;
 
-                       if (size < (h->farmid == 0 ? 
GDK_mmap_minsize_persistent : GDK_mmap_minsize_transient))
-                               fprintf(stderr, "#%s: emergency mmap %11zu 
%11zu %11zu\n", __func__, h->size, (size_t) GDKmem_cursize(), (size_t) 
GDKvm_cursize());
                        assert(h->storage == STORE_MEM);
                        assert(ext != NULL);
                        /* if the heap file already exists, we want to switch
@@ -765,8 +761,6 @@ HEAPload_intern(Heap *h, const char *nme
                h->storage = h->newstorage = h->size < (h->farmid == 0 ? 
GDK_mmap_minsize_persistent : GDK_mmap_minsize_transient) &&
                        (allocated = GDKmem_cursize()) < GDK_mem_maxsize &&
                        h->size < ((GDK_mem_maxsize - allocated) >> 6) ? 
STORE_MEM : STORE_MMAP;
-               if (h->storage == STORE_MMAP && h->size < (h->farmid == 0 ? 
GDK_mmap_minsize_persistent : GDK_mmap_minsize_transient))
-                       fprintf(stderr, "#%s: emergency mmap %11zu %11zu\n", 
__func__, h->size, (size_t) GDKmem_cursize());
        }
 
        minsize = (h->size + GDK_mmap_pagesize - 1) & ~(GDK_mmap_pagesize - 1);
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to