Changeset: ceb9f565b30f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ceb9f565b30f
Modified Files:
        MonetDB/src/gdk/gdk_heap.mx
Branch: Oct2010
Log Message:

Improved comments.


diffs (21 lines):

diff -r 89ac02f129f2 -r ceb9f565b30f MonetDB/src/gdk/gdk_heap.mx
--- a/MonetDB/src/gdk/gdk_heap.mx       Tue Oct 12 19:20:08 2010 +0200
+++ b/MonetDB/src/gdk/gdk_heap.mx       Wed Oct 13 09:58:12 2010 +0200
@@ -299,12 +299,14 @@
        }
        assert(c->width < width);
        assert(c->shift < shift);
-       /* we need to convert the whole heap, since we may be in the
-          middle of an insert loop that adjusts the free value at the
-          end */
+       /* if copyall is set, we need to convert the whole heap, since
+          we may be in the middle of an insert loop that adjusts the
+          free value at the end; otherwise only copy the area
+          indicated by the "free" pointer */
        n = (copyall ? c->heap.size : c->heap.free) >> c->shift;
        if (HEAPextend(&c->heap, (c->heap.size >> c->shift) << shift) < 0)
                return GDK_FAIL;
+       /* note, cast binds more closely than addition */
        pc = (unsigned char *) c->heap.base + n;
        ps = (unsigned short *) c->heap.base + n;
        pi = (unsigned int *) c->heap.base + n;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to