[sgen] Clear the card table in the finishing pause
authorVlad Brezae <brezaevlad@gmail.com>
Wed, 23 Mar 2016 17:17:03 +0000 (19:17 +0200)
committerVlad Brezae <brezaevlad@gmail.com>
Tue, 29 Mar 2016 05:47:57 +0000 (08:47 +0300)
It is not used during a major collection. The collector will add the necessary global remsets afterwards, for the nursery collections.

mono/sgen/sgen-gc.c

index 89af85f4387d92646edc38554aa138dd0b9dbdec..e338508e349d08800e5bedd8454607fba4c795a3 100644 (file)
@@ -1698,7 +1698,7 @@ major_copy_or_mark_from_roots (size_t *old_next_pin_slot, CopyOrMarkFromRootsMod
 
        sgen_client_pre_collection_checks ();
 
-       if (!concurrent) {
+       if (mode != COPY_OR_MARK_FROM_ROOTS_START_CONCURRENT) {
                /* Remsets are not useful for a major collection */
                remset.clear_cards ();
        }