From b9ecb3a029c30db81d2ffce790dd30978f3448c6 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 29 Jun 2017 12:38:06 +0300 Subject: [PATCH] Call WARN() if GC_mprotect_dirty_init cannot succeed (Darwin) (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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os_dep.c b/os_dep.c index 76b5ce73..a77f61b5 100644 --- 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 -- 2.40.0