Changeset: b7db41905a33 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b7db41905a33
Modified Files:
        gdk/gdk_utils.c
Branch: resource_management
Log Message:

counting objects only


diffs (17 lines):

diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c
--- a/gdk/gdk_utils.c
+++ b/gdk/gdk_utils.c
@@ -2414,8 +2414,11 @@ static void *
                r = sa->blks[sa->nr-1] + sa->used;
                sa->used += sz;
        }
-       sa->objects += 1;
-       sa->inuse += 1;
+       if (sz < SA_BLOCK_SIZE) {
+               // countig object only
+               sa->objects += 1;
+               sa->inuse += 1;
+       }
        COND_UNLOCK_ALLOCATOR(sa);
        return r;
 }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to