+2011-05-11 Ivan Maidanski <ivmai@mail.ru>
+
+ * os_dep.c (GC_gww_page_was_ever_dirty): Fix comment (for
+ GWW_VDB).
+ * os_dep.c (GC_dirty_init): Use memset() for GC_written_pages
+ resetting (for PROC_VDB).
+
2011-05-11 Ivan Maidanski <ivmai@mail.ru> (mostly really Ludovic Courtes)
* tests/threadkey_test.c: New file.
}
# ifdef CHECKSUMS
- /* Used only if PROC_VDB. */
+ /* Used only if GWW_VDB. */
# ifdef MPROTECT_VDB
STATIC GC_bool GC_gww_page_was_ever_dirty(struct hblk * h)
# else
GC_dirty_maintained = TRUE;
if (GC_bytes_allocd != 0 || GC_bytes_allocd_before_gc != 0) {
- register int i;
- for (i = 0; i < PHT_SIZE; i++)
- GC_written_pages[i] = (word)(-1);
+ memset(GC_written_pages, 0xff, sizeof(page_hash_table));
if (GC_print_stats == VERBOSE)
GC_log_printf("Allocated bytes:%lu:all pages may have been written\n",
(unsigned long)(GC_bytes_allocd