From: Ivan Maidanski Date: Thu, 29 Jun 2017 09:38:06 +0000 (+0300) Subject: Call WARN() if GC_mprotect_dirty_init cannot succeed (Darwin) X-Git-Tag: v8.0.0~657 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9ecb3a029c30db81d2ffce790dd30978f3448c6;p=gc 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. --- 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