diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-10-12 15:53:53 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-10-14 11:13:12 +0200 |
commit | c3b7c5cc2d3f5d6ee42ba71d3880d3a3a8d5a0cb (patch) | |
tree | 0369b91f9a999560d938b098d4998e0a2e7968c3 /platform/javascript | |
parent | 4294b1f4bba55f2229280eac8668ec31e9ab3f0e (diff) |
Increase HTML5 THREADPOOL size.
This fixes a "random" deadlock when quitting the editor.
I still haven't figure out the root cause, but having a bigger seems to
greatly mitigate the issue.
The new pool size (pre-allocated threads) is now 8.
Diffstat (limited to 'platform/javascript')
-rw-r--r-- | platform/javascript/detect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index 4b5890545f..8f2961b33d 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -135,7 +135,7 @@ def configure(env): env.Append(CPPDEFINES=["PTHREAD_NO_RENAME"]) env.Append(CCFLAGS=["-s", "USE_PTHREADS=1"]) env.Append(LINKFLAGS=["-s", "USE_PTHREADS=1"]) - env.Append(LINKFLAGS=["-s", "PTHREAD_POOL_SIZE=4"]) + env.Append(LINKFLAGS=["-s", "PTHREAD_POOL_SIZE=8"]) env.Append(LINKFLAGS=["-s", "WASM_MEM_MAX=2048MB"]) env.extra_suffix = ".threads" + env.extra_suffix else: |