From 712ce49b251b98cdf60a217d189d3f72de2d84d8 Mon Sep 17 00:00:00 2001 From: Terrence Cole Date: Fri, 6 Jan 2012 17:05:33 -0800 Subject: [PATCH] Bug 716136 - Add a configure flag to enable Generational GC; r=billm These are already in the tree in several places to protect (empty) post write barriers. This will make it easier to test this functionality on more platforms going forward. --HG-- extra : rebase_source : d9c7f4f46392abbd608da94d02a7bc45f9fe8613 --- js/src/configure.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/js/src/configure.in b/js/src/configure.in index 89fe61707b3..84390cf6f2c 100644 --- a/js/src/configure.in +++ b/js/src/configure.in @@ -4348,6 +4348,17 @@ if test -n "$JSGC_INCREMENTAL"; then AC_DEFINE(JSGC_INCREMENTAL) fi +dnl ======================================================== +dnl = Use generational GC +dnl ======================================================== +MOZ_ARG_ENABLE_BOOL(gcgenerational, +[ --enable-gcgenerational Enable generational GC], + JSGC_GENERATIONAL=1, + JSGC_GENERATIONAL= ) +if test -n "$JSGC_GENERATIONAL"; then + AC_DEFINE(JSGC_GENERATIONAL) +fi + dnl ======================================================== dnl = Perform moving GC stack rooting analysis dnl ========================================================