summaryrefslogtreecommitdiff
path: root/os_dep.c
diff options
context:
space:
mode:
authorivmai <ivmai>2011-05-11 11:12:35 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:59 +0200
commit3c60adf047fe57b0edff8dc5aa456b7e72e89cef (patch)
treef903b06c921dec77d49be5e24781424ca169dc0b /os_dep.c
parent75827f128a6843990f7fa778e6641b1f1ddeddca (diff)
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).
Diffstat (limited to 'os_dep.c')
-rw-r--r--os_dep.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/os_dep.c b/os_dep.c
index eb69a7e..ed8726e 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -2772,7 +2772,7 @@ STATIC void GC_default_push_other_roots(void)
}
# 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
@@ -3641,9 +3641,7 @@ GC_INNER void GC_dirty_init(void)
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