Blame SOURCES/disable-extra-threads.patch

1417c8
diff -up firefox-52.6.0esr/js/src/vm/Runtime.cpp.disable-extra-threads firefox-52.6.0esr/js/src/vm/Runtime.cpp
1417c8
--- firefox-52.6.0esr/js/src/vm/Runtime.cpp.disable-extra-threads	2018-02-08 10:16:13.453828939 -0500
1417c8
+++ firefox-52.6.0esr/js/src/vm/Runtime.cpp	2018-02-08 10:23:31.283458826 -0500
1417c8
@@ -283,6 +283,17 @@ JSRuntime::init(uint32_t maxbytes, uint3
1417c8
     ownerThreadNative_ = (size_t)pthread_self();
1417c8
 #endif
1417c8
 
1417c8
+    const char* enable_js_helper_threads;
1417c8
+    enable_js_helper_threads = getenv("GJS_ENABLE_JS_HELPER_THREADS");
1417c8
+
1417c8
+#if defined(__PPC64__) && defined (__LITTLE_ENDIAN__)
1417c8
+    if (enable_js_helper_threads == NULL)
1417c8
+        js::DisableExtraThreads();
1417c8
+#endif
1417c8
+
1417c8
+    if (enable_js_helper_threads != NULL && enable_js_helper_threads[0] == '0')
1417c8
+        js::DisableExtraThreads();
1417c8
+
1417c8
     if (!mainThread.init())
1417c8
         return false;
1417c8