volatile page_hash_table _dirty_pages;
/* Pages dirtied since last GC_read_dirty. */
# endif
-# if defined(PROC_VDB) || defined(GWW_VDB)
+# if (defined(CHECKSUMS) && defined(GWW_VDB)) || defined(PROC_VDB)
# define GC_written_pages GC_arrays._written_pages
page_hash_table _written_pages; /* Pages ever dirtied */
# endif
#endif
#if defined(PROC_VDB) || defined(GWW_VDB)
- /* Add all pages in pht2 to pht1 */
- STATIC void GC_or_pages(page_hash_table pht1, page_hash_table pht2)
- {
- register unsigned i;
- for (i = 0; i < PHT_SIZE; i++) pht1[i] |= pht2[i];
- }
-
# ifdef MPROTECT_VDB
STATIC GC_bool GC_gww_page_was_dirty(struct hblk * h)
# else
}
# if defined(CHECKSUMS) || defined(PROC_VDB)
+ /* Add all pages in pht2 to pht1. */
+ STATIC void GC_or_pages(page_hash_table pht1, page_hash_table pht2)
+ {
+ register unsigned i;
+ for (i = 0; i < PHT_SIZE; i++) pht1[i] |= pht2[i];
+ }
+
/* Used only if GWW_VDB. */
# ifdef MPROTECT_VDB
STATIC GC_bool GC_gww_page_was_ever_dirty(struct hblk * h)
/* up. But that should still be handled correctly. */
}
- GC_or_pages(GC_written_pages, GC_grungy_pages);
+# ifdef CHECKSUMS
+ GC_or_pages(GC_written_pages, GC_grungy_pages);
+# endif
}
#endif /* GWW_VDB */