]> granicus.if.org Git - gc/commitdiff
New configure --disable-register-main-static-data option
authorMichael DeRoy <deroymichael@gmail.com>
Mon, 30 Jul 2018 07:48:00 +0000 (10:48 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 30 Jul 2018 07:48:00 +0000 (10:48 +0300)
(part of commit 6be3fb4 from Unity-Technologies/bdwgc)

Issue #173 (bdwgc).

* configure.ac (register-main-static-data): New AC_ARG_ENABLE.
* configure.ac [$enable_register_main_static_data=no]
(GC_DONT_REGISTER_MAIN_STATIC_DATA): Define AC macro.

configure.ac

index ade6f59711a2f09687ce17a621d779cc468cb29d..dccf9718c34010d927e845258d761c85510fc070 100644 (file)
@@ -954,6 +954,14 @@ if test "${enable_dynamic_loading}" = "no"; then
              collector with disabled tracing of dynamic library data roots).])
 fi
 
+AC_ARG_ENABLE(register-main-static-data,
+    [AC_HELP_STRING([--disable-register-main-static-data],
+                    [skip the initial guess of data root sets])])
+if test "${enable_register_main_static_data}" = "no"; then
+    AC_DEFINE([GC_DONT_REGISTER_MAIN_STATIC_DATA], 1,
+              [Skip the initial guess of data root sets.])
+fi
+
 AC_ARG_ENABLE(checksums,
     [AS_HELP_STRING([--enable-checksums],
                     [report on erroneously cleared dirty bits at