mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1422540 - move --enable-gczeal to moz.configure; r=nalexander
This commit is contained in:
parent
4de9966be8
commit
3a307d4ebb
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -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 ========================================================
|
||||
|
Loading…
Reference in New Issue
Block a user