Changeset: 1fc42a08ce47 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1fc42a08ce47
Modified Files:
gdk/gdk_utils.c
Branch: resource_management
Log Message:
don't zap freelist_blks on reset
diffs (14 lines):
diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c
--- a/gdk/gdk_utils.c
+++ b/gdk/gdk_utils.c
@@ -2374,8 +2374,9 @@ allocator *sa_reset(allocator *sa)
sa->used = offset;
sa->frees = 0;
sa->nr = 1;
+ // reset freelist only i.e. leave freelist_blks alone as
+ // it may have blocks we can re-use
sa->freelist = NULL;
- sa->freelist_blks = NULL;
sa->usedmem = SA_BLOCK_SIZE;
sa->blk_size = SA_BLOCK_SIZE;
sa->objects = 0;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]