summaryrefslogtreecommitdiff
path: root/mark.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-12-08 16:25:04 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 21:06:52 +0400
commit61d0de0517da47be2718db10e7987f6ab4936bd6 (patch)
treebd35f7a49d99deb9dd19aee0bc09da7af3131f84 /mark.c
parent197742f24da7b83431132559f8e306d5da5df8f0 (diff)
downloadbdwgc-61d0de0517da47be2718db10e7987f6ab4936bd6.tar.gz
2009-12-08 Ivan Maidanski <ivmai@mail.ru>
* allchblk.c (GC_allochblk_nth): Don't call GC_remove_protection() if GC_DISABLE_INCREMENTAL. * reclaim.c (GC_reclaim_generic): Ditto. * checksums.c (GC_page_was_ever_dirty): Add prototype. * include/private/gc_locks.h (GC_mark_lock_holder): Don't declare unless PARALLEL_MARK. * include/private/gc_priv.h (GC_dirty_maintained, GC_page_was_dirty, GC_remove_protection, GC_dirty_init): Don't declare if GC_DISABLE_INCREMENTAL. * include/private/gc_priv.h (GC_print_finalization_stats): Don't declare if SMALL_CONFIG. * include/private/gcconfig.h (CHECKSUMS): Explicitly undefine if GC_DISABLE_INCREMENTAL (since nothing to check). * include/private/gcconfig.h (DEFAULT_VDB): Don't define if GC_DISABLE_INCREMENTAL. * os_dep.c (GC_dirty_maintained): Ditto. * mark.c (GC_initiate_gc): Don't call GC_read_dirty() if GC_DISABLE_INCREMENTAL. * os_dep.c (GC_gww_page_was_ever_dirty, GC_page_was_ever_dirty): Uncomment; define only if CHECKSUMS.
Diffstat (limited to 'mark.c')
-rw-r--r--mark.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mark.c b/mark.c
index 072d6215..264f91c6 100644
--- a/mark.c
+++ b/mark.c
@@ -259,7 +259,9 @@ GC_INNER void GC_clear_marks(void)
/* mark state is invalid. */
GC_INNER void GC_initiate_gc(void)
{
- if (GC_dirty_maintained) GC_read_dirty();
+# ifndef GC_DISABLE_INCREMENTAL
+ if (GC_dirty_maintained) GC_read_dirty();
+# endif
# ifdef STUBBORN_ALLOC
GC_read_changed();
# endif