summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2020-01-13 16:24:13 -0600
committerPaul J. Davis <paul.joseph.davis@gmail.com>2020-01-13 16:53:54 -0600
commit3593b5ac8aaef11f50c45cd5238956ca48cc279d (patch)
tree151eadef79958072fbfaf288a91fc6f8f15a5232
parentde9c683fc7977c51e00e63687fb764b9cbe2c7e6 (diff)
downloadcouchdb-3593b5ac8aaef11f50c45cd5238956ca48cc279d.tar.gz
Disable JIT compiler on SpiderMonkey 60
We've had a number of segfaults in the `make javascript` test suite. The few times we've been able to get core dumps all appear to indicate something wrong in the JIT compiler. Disabling the JIT compilers appears to prevent these segfaults.
-rw-r--r--src/couch/priv/couch_js/60/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/couch/priv/couch_js/60/main.cpp b/src/couch/priv/couch_js/60/main.cpp
index e36bc619b..e78dbb46d 100644
--- a/src/couch/priv/couch_js/60/main.cpp
+++ b/src/couch/priv/couch_js/60/main.cpp
@@ -416,6 +416,9 @@ main(int argc, const char* argv[])
if(cx == NULL)
return 1;
+ JS_SetGlobalJitCompilerOption(cx, JSJITCOMPILER_BASELINE_ENABLE, 0);
+ JS_SetGlobalJitCompilerOption(cx, JSJITCOMPILER_ION_ENABLE, 0);
+
if (!JS::InitSelfHostedCode(cx))
return 1;