Changeset: b992343fb9a2 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/b992343fb9a2 Modified Files: gdk/gdk_heap.c Branch: Jan2022 Log Message:
Merge with Jul2021 branch. diffs (35 lines): diff --git a/gdk/gdk_heap.c b/gdk/gdk_heap.c --- a/gdk/gdk_heap.c +++ b/gdk/gdk_heap.c @@ -255,7 +255,7 @@ HEAPextend(Heap *h, size_t size, bool ma if (!must_mmap) { h->newstorage = h->storage = STORE_MEM; h->base = GDKrealloc(h->base, size); - TRC_DEBUG(HEAP, "Extending malloced heap %s %zu %zu %p %p\n", h->filename, size, h->size, bak.base, h->base); + TRC_DEBUG(HEAP, "Extending malloced heap %s %zu->%zu %p->%p\n", h->filename, bak.size, size, bak.base, h->base); h->size = size; if (h->base) return GDK_SUCCEED; /* success */ @@ -316,22 +316,6 @@ HEAPextend(Heap *h, size_t size, bool ma return GDK_SUCCEED; } failure = "h->storage == STORE_MEM && can_map && fd >= 0 && HEAPload() != GDK_SUCCEED"; - /* couldn't allocate, now first save data to - * file */ - if (HEAPsave_intern(&bak, nme, ext, ".tmp", false, bak.free) != GDK_SUCCEED) { - failure = "h->storage == STORE_MEM && can_map && fd >= 0 && HEAPsave_intern() != GDK_SUCCEED"; - goto failed; - } - /* then free memory */ - HEAPfree(&bak, false); - /* and load heap back in via memory-mapped - * file */ - if (HEAPload_intern(h, nme, ext, ".tmp", false) == GDK_SUCCEED) { - /* success! */ - GDKclrerr(); /* don't leak errors from e.g. HEAPload */ - return GDK_SUCCEED; - } - failure = "h->storage == STORE_MEM && can_map && fd >= 0 && HEAPload_intern() != GDK_SUCCEED"; /* we failed */ } else { failure = "h->storage == STORE_MEM && can_map && fd < 0"; _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org