Call WARN() if GC_mprotect_dirty_init cannot succeed (Darwin)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 29 Jun 2017 09:38:06 +0000 (12:38 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 29 Jun 2017 09:38:06 +0000 (12:38 +0300)
(fix commit 6bfc840)

* os_dep.c [MPROTECT_VDB && DARWIN && CAN_HANDLE_FORK]
(GC_mprotect_dirty_init): Replace GC_COND_LOG_PRINTF() with WARN()
which is called before return FALSE; refine WARN message.

os_dep.c

index 76b5ce7..a77f61b 100644 (file)
--- a/os_dep.c
+++ b/os_dep.c
@@ -4098,8 +4098,8 @@ GC_INNER GC_bool GC_mprotect_dirty_init(void)
       /* gracefully (unprotecting all pages and clearing                */
       /* GC_mach_handler_thread).  For now, we just disable incremental */
       /* mode if fork() handling is requested by the client.            */
-      GC_COND_LOG_PRINTF("GC incremental mode disabled since fork()"
-                         " handling requested\n");
+      WARN("Can't turn on GC incremental mode as fork()"
+           " handling requested\n", 0);
       return FALSE;
     }
 # endif