Changeset: 01fa41cf4799 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=01fa41cf4799
Modified Files:
        gdk/gdk_heap.c
Branch: Jul2012
Log Message:

Format comments.


diffs (38 lines):

diff --git a/gdk/gdk_heap.c b/gdk/gdk_heap.c
--- a/gdk/gdk_heap.c
+++ b/gdk/gdk_heap.c
@@ -228,10 +228,10 @@ decompose_filename(str nme)
 /*
  * @- HEAPalloc
  *
- * Normally, we use GDKmalloc for creating a new heap.  Huge heaps, though, 
come
- * from memory mapped files that we create with a large seek. This is fast, 
and leads to
- * files-with-holes on Unixes (on Windows, it actually always performs I/O 
which is not
- * nice).
+ * Normally, we use GDKmalloc for creating a new heap.  Huge heaps,
+ * though, come from memory mapped files that we create with a large
+ * seek. This is fast, and leads to files-with-holes on Unixes (on
+ * Windows, it actually always performs I/O which is not nice).
  */
 static size_t
 HEAPmargin(size_t maxsize)
@@ -355,7 +355,8 @@ HEAPextend(Heap *h, size_t size)
                        return 0;
                }
        } else {
-               /* extend a malloced heap, possibly switching over to 
file-mapped storage */
+               /* extend a malloced heap, possibly switching over to
+                * file-mapped storage */
                Heap bak = *h;
                size_t cur = GDKmem_inuse(), tot = GDK_mem_maxsize;
                int exceeds_swap = size > (tot + tot - MIN(tot + tot, cur));
@@ -368,7 +369,8 @@ HEAPextend(Heap *h, size_t size)
                h->size = size;
 
                if (can_mmap) {
-                       /* in anonymous vm, if have to realloc anyway, we 
reserve some extra space */
+                       /* in anonymous vm, if have to realloc anyway,
+                        * we reserve some extra space */
                        h->maxsize = HEAPmargin(MAX(size, h->maxsize));
                } else {
                        h->maxsize = size;      /* for normal GDKmalloc, 
maxsize = size */
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to