Bug 1422540 - move --enable-gczeal to moz.configure; r=nalexander

This commit is contained in:
Nathan Froyd 2017-12-03 13:40:03 -05:00
parent 4de9966be8
commit 3a307d4ebb
3 changed files with 8 additions and 12 deletions

View File

@ -187,7 +187,6 @@ def old_configure_options(*options):
'--enable-feeds',
'--enable-gamepad',
'--enable-gconf',
'--enable-gczeal',
'--enable-hardware-aec-ns',
'--enable-icf',
'--enable-install-strip',

View File

@ -274,6 +274,14 @@ def gc_trace(value):
set_define('JS_GC_TRACE', gc_trace)
js_option('--enable-gczeal',
default=depends(when=moz_debug)(lambda: True),
help='Enable zealous GCing')
set_define('JS_GC_ZEAL',
depends_if('--enable-gczeal')(lambda _: True))
# Trace logging.
# =======================================================
js_option('--enable-trace-logging',

View File

@ -1553,17 +1553,6 @@ if test -n "$MOZ_DEBUG"; then
AC_DEFINE(JS_DEBUG)
fi
dnl ========================================================
dnl Zealous JavaScript GC
dnl ========================================================
MOZ_ARG_ENABLE_BOOL(gczeal,
[ --enable-gczeal Enable zealous GCing],
JS_GC_ZEAL=1,
JS_GC_ZEAL= )
if test -n "$JS_GC_ZEAL" -o -n "$MOZ_DEBUG"; then
AC_DEFINE(JS_GC_ZEAL)
fi
dnl ========================================================
dnl Enable breakpoint for artificial OOMs
dnl ========================================================