Changeset: f6328d5c9a04 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f6328d5c9a04
Modified Files:
gdk/gdk.h
gdk/gdk_heap.c
Branch: default
Log Message:
Removed field forcemap. It is unused.
diffs (28 lines):
diff --git a/gdk/gdk.h b/gdk/gdk.h
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -575,7 +575,6 @@ typedef struct {
bool copied:1, /* a copy of an existing map. */
hashash:1, /* the string heap contains hash values */
- forcemap:1, /* force STORE_MMAP even if heap exists */
cleanhash:1, /* string heaps must clean hash */
dirty:1; /* specific heap dirty marker */
storage_t storage; /* storage mode (mmap/malloc). */
diff --git a/gdk/gdk_heap.c b/gdk/gdk_heap.c
--- a/gdk/gdk_heap.c
+++ b/gdk/gdk_heap.c
@@ -266,12 +266,11 @@ HEAPextend(Heap *h, size_t size, bool ma
fd = GDKfdlocate(h->farmid, nme, "wb", ext);
if (fd >= 0) {
close(fd);
- h->storage = h->newstorage == STORE_MMAP && existing &&
!h->forcemap && !mayshare ? STORE_PRIV : h->newstorage;
+ h->storage = h->newstorage == STORE_MMAP && existing &&
!mayshare ? STORE_PRIV : h->newstorage;
/* make sure we really MMAP */
if (must_mmap && h->newstorage == STORE_MEM)
h->storage = STORE_MMAP;
h->newstorage = h->storage;
- h->forcemap = false;
h->base = NULL;
HEAPDEBUG fprintf(stderr, "#HEAPextend: converting
malloced to %s mmapped heap\n", h->newstorage == STORE_MMAP ? "shared" :
"privately");
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list