Changeset: 20b19570b76a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/20b19570b76a
Modified Files:
gdk/gdk_utils.c
Branch: Mar2025
Log Message:
Merge with Aug2024 branch.
diffs (15 lines):
diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c
--- a/gdk/gdk_utils.c
+++ b/gdk/gdk_utils.c
@@ -2232,7 +2232,10 @@ sa_alloc(allocator *sa, size_t sz)
}
sa->blks = tmp;
}
- if (sz > SA_BLOCK) {
+ if (sz >= SA_BLOCK) {
+ // The request is large so it gets its own block.
+ // We put it 'under' the current block because
+ // there may still be plenty of usable space there.
sa->blks[sa->nr] = sa->blks[sa->nr-1];
sa->blks[sa->nr-1] = r;
sa->nr ++;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]