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

temporary disable check


diffs (34 lines):

diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c
--- a/gdk/gdk_utils.c
+++ b/gdk/gdk_utils.c
@@ -2082,19 +2082,19 @@ typedef struct freed_t {
 static void
 sa_free_obj(allocator *pa, void *obj, size_t sz)
 {
-       size_t i;
+       //size_t i;
 
-       char *obj_start = (char *) obj;
-       char *obj_end = obj_start + sz;
+       //char *obj_start = (char *) obj;
+       //char *obj_end = obj_start + sz;
 
-       // find the block this object belongs to
-       for(i = 0; i < pa->nr; i++) {
-               char * blk_start = (char *) pa->blks[i];
-               char * blk_end = blk_start + SA_BLOCK_SIZE;
-               if ((obj_start >= blk_start) && (obj_end <= blk_end))
-                       break;
-       }
-       assert (i < pa->nr);
+       //// find the block this object belongs to
+       //for(i = 0; i < pa->nr; i++) {
+       //      char * blk_start = (char *) pa->blks[i];
+       //      char * blk_end = blk_start + SA_BLOCK_SIZE;
+       //      if ((obj_start >= blk_start) && (obj_end <= blk_end))
+       //              break;
+       //}
+       //assert (i < pa->nr);
        // put on the freelist
        freed_t *f = memset(obj, 0, sz);
        f->sz = sz;
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to