Changeset: 9b2c61ebfd00 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9b2c61ebfd00
Modified Files:
        gdk/gdk_bbp.c
Branch: multi-cachelock
Log Message:

hand over in multiples of fixed size batches of records


diffs (15 lines):

diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -2681,9 +2681,9 @@ bbpclear(bat i, bool lock)
        }
        if (++t->stat_call_count == GC_FREE_LIST_CALL_COUNT) {
                const bat a = (t->stat_free_max - t->stat_free_min);
-               bat b = a/2;
+               bat b = a / FREE_CHUNK_ALLOC_SIZE / 2;
                if (b && 2 * a < t->stat_free_min) {
-                       BBPhandover(t, b);
+                       BBPhandover(t, b * FREE_CHUNK_ALLOC_SIZE);
                }
                t->stat_call_count = 0;
        }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to