Fix message of VDB implementation used if MPROTECT_VDB+GWW_VDB (gctest)
authorIvan Maidanski <ivmai@mail.ru>
Mon, 5 Dec 2016 23:06:36 +0000 (02:06 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 5 Dec 2016 23:06:36 +0000 (02:06 +0300)
* tests/test.c [!PCR && !GC_WIN32_THREADS && !GC_PTHREADS
&& !NO_INCREMENTAL] (main): If MPROTECT_VDB and GWW_VDB are both
defined then also print "Using GetWriteWatch-based implementation"
message.

tests/test.c

index 6d3dbfe..f5f04ef 100644 (file)
@@ -1734,12 +1734,15 @@ void GC_CALLBACK warn_proc(char *msg, GC_word p)
           && !defined(MAKE_BACK_GRAPH) && !defined(NO_INCREMENTAL)
       GC_enable_incremental();
       GC_printf("Switched to incremental mode\n");
-#     if defined(MPROTECT_VDB)
-        GC_printf("Emulating dirty bits with mprotect/signals\n");
-#     elif defined(PROC_VDB)
+#     ifdef PROC_VDB
         GC_printf("Reading dirty bits from /proc\n");
-#     else /* GWW_VDB */
+#     elif defined(GWW_VDB)
         GC_printf("Using GetWriteWatch-based implementation\n");
+#       ifdef MPROTECT_VDB
+          GC_printf("Or emulating dirty bits with mprotect/signals\n");
+#       endif
+#     else /* MPROTECT_VDB && !GWW_VDB */
+        GC_printf("Emulating dirty bits with mprotect/signals\n");
 #     endif
 #   endif
     run_one_test();