From: Ivan Maidanski Date: Thu, 29 Aug 2019 21:28:23 +0000 (+0300) Subject: Disable mprotect-based incremental GC if /proc roots are used (Linux) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79ae7acd5ce4b48478302c7e1610e15e482381f5;p=gc Disable mprotect-based incremental GC if /proc roots are used (Linux) The incremental GC is considered incompatible with /proc roots. * include/private/gcconfig.h [USE_PROC_FOR_LIBRARIES && GC_LINUX_THREADS] (MPROTECT_VDB): Undefine; add comment. --- diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index ffd8e3a3..2dda9401 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -3153,6 +3153,11 @@ EXTERN_C_BEGIN # undef MPROTECT_VDB #endif +#if defined(USE_PROC_FOR_LIBRARIES) && defined(GC_LINUX_THREADS) + /* Incremental GC is incompatible with /proc roots. */ +# undef MPROTECT_VDB +#endif + #if defined(MPROTECT_VDB) && defined(GC_PREFER_MPROTECT_VDB) /* Choose MPROTECT_VDB manually (if multiple strategies available). */ # undef PCR_VDB