[sgen] Flush binary protocol buffers when missing remsets.
authorMark Probst <mark.probst@gmail.com>
Thu, 31 Mar 2016 19:07:05 +0000 (12:07 -0700)
committerMark Probst <mark.probst@gmail.com>
Mon, 25 Jul 2016 18:06:55 +0000 (11:06 -0700)
The missing remset check uses the binary protocol to log missing
remsets it found.  Debugging is easier if we don't have to manually
flush the binary protocol.

mono/sgen/sgen-debug.c

index 299d53e8e4b99f6d55f14d07a9ca36869f4caeac..6ee0694e8ee5ef22b92d93311b75b6dffab847c6 100644 (file)
@@ -197,6 +197,8 @@ sgen_check_remset_consistency (void)
 
        SGEN_LOG (1, "Heap consistency check done.");
 
+       if (missing_remsets)
+               binary_protocol_flush_buffers (TRUE);
        if (!binary_protocol_is_enabled ())
                g_assert (!missing_remsets);
 }