Skip to content

Commit 61eaf76

Browse files
Disable BG Parse and Parse State caching by default
Both features need a little more bake time. They can be turned on with a flag.
1 parent 34967a4 commit 61eaf76

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Common/ConfigFlagsList.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,14 +434,15 @@ PHASE(All)
434434
#define DEFAULT_CONFIG_WasmSignExtends (true)
435435
#define DEFAULT_CONFIG_WasmNontrapping (true)
436436
#define DEFAULT_CONFIG_WasmExperimental (false)
437+
#define DEFAULT_CONFIG_BgParse (false)
437438
#define DEFAULT_CONFIG_BgJitDelayFgBuffer (0)
438439
#define DEFAULT_CONFIG_BgJitPendingFuncCap (31)
439440
#define DEFAULT_CONFIG_CurrentSourceInfo (true)
440441
#define DEFAULT_CONFIG_CreateFunctionProxy (true)
441442
#define DEFAULT_CONFIG_HybridFgJit (false)
442443
#define DEFAULT_CONFIG_HybridFgJitBgQueueLengthThreshold (32)
443444
#define DEFAULT_CONFIG_Prejit (false)
444-
#define DEFAULT_CONFIG_ParserStateCache (true)
445+
#define DEFAULT_CONFIG_ParserStateCache (false)
445446
#define DEFAULT_CONFIG_DeferTopLevelTillFirstCall (true)
446447
#define DEFAULT_CONFIG_DirectCallTelemetryStats (false)
447448
#define DEFAULT_CONFIG_errorStackTrace (true)
@@ -971,7 +972,7 @@ FLAGR (NumberSet, BailOutByteCode , "Byte code location to insert BailOut. U
971972
#endif
972973
FLAGNR(Boolean, Benchmark , "Disable security code which introduce variability in benchmarks", false)
973974
FLAGR (Boolean, BgJit , "Background JIT. Disable to force heuristic-based foreground JITting. (default: true)", true)
974-
FLAGR (Boolean, BgParse , "Background Parse. Disable to force all parsing to occur on UI thread. (default: true)", true)
975+
FLAGR (Boolean, BgParse , "Background Parse. Disable to force all parsing to occur on UI thread. (default: true)", DEFAULT_CONFIG_BgParse)
975976
FLAGNR(Number, BgJitDelay , "Delay to wait for speculative jitting before starting script execution", DEFAULT_CONFIG_BgJitDelay)
976977
FLAGNR(Number, BgJitDelayFgBuffer , "When speculatively jitting in the foreground thread, do so for (BgJitDelay - BgJitDelayBuffer) milliseconds", DEFAULT_CONFIG_BgJitDelayFgBuffer)
977978
FLAGNR(Number, BgJitPendingFuncCap , "Disable delay if pending function count larger then cap", DEFAULT_CONFIG_BgJitPendingFuncCap)

0 commit comments

Comments
 (0)