• Andreas Haas's avatar
    [wasm] Fix predictable mode for async compilation · a580b2fb
    Andreas Haas authored
    In predictable mode DoSync and DoAsync are only normal
    function calls. Therefore I had to do some adjustments
    to async compilation to make it work with --predictable:
    * I moved all calls to DoSync and DoAsync out of
      DisallowHandleAllocation and DisallowHeapAllocation
      scopes.
    * I turned off the use of the semaphore which
      synchronizes the background compilation tasks with
      the main thread. It caused a deadlock.
    * Adjust when the AsyncCompileJob is deleted, namely
      after the start function and not after the execution
      of the last compilation task. The reason is that in
      predictable mode all previous tasks are still on the
      stack after the last compilation task.
    
    
    Bug:
    
    Change-Id: I2f96f64febeee6b8bd5f4da3cec882797d249400
    Reviewed-on: https://chromium-review.googlesource.com/469610
    Commit-Queue: Andreas Haas <ahaas@chromium.org>
    Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#44456}
    a580b2fb
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
gypfiles Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...