Changeset: c4ef06d86a7d for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c4ef06d86a7d
Modified Files:
MonetDB/src/gdk/gdk_storage.mx
Branch: Oct2010
Log Message:
Don't preload heaps that we don't need.
If advice is MMAP_DONTNEED we don't need to preload. This happens
e.g. in decref when destroying a BAT.
diffs (12 lines):
diff -r 18e21a0c8d61 -r c4ef06d86a7d MonetDB/src/gdk/gdk_storage.mx
--- a/MonetDB/src/gdk/gdk_storage.mx Sat Oct 09 14:48:25 2010 +0200
+++ b/MonetDB/src/gdk/gdk_storage.mx Sat Oct 09 15:35:58 2010 +0200
@@ -755,7 +755,7 @@
alignedsz >> 20, advice, errno);
}
}
- if (touch && preload > 0) {
+ if (touch && preload > 0 && adv != MMAP_DONTNEED) {
/* we need to ensure alignment, here, as b might be a
view and heap.base of views are not necessarily
aligned */
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list