• Andreas Haas's avatar
    [wasm] Allow to restart background tasks during streaming compilation · 2c3fae96
    Andreas Haas authored
    In a certain scenario streaming compilation got stuck and did never
    finish. This CL fixes this issue.
    
    Scenario:
    * Streaming compilation starts
    * The compilation tasks execute all compiation units in the working
      queue and set the finished_ flag to true.
    * New data arrives over streaming
    * The compilation tasks compile so fast that the executed_units_ queue
      gets full. The compilation tasks stop executing and wait for the
      finisher task to restart them.
    * The finisher task does not restart the compilation tasks because the
      finished_ flag is set.
    
    With this CL I remove the finished flag and instead look at the size
    of the working queue directly.
    
    In addition I added a test which does not actually reproduce this
    scenario but seems good to have anyways.
    
    R=mtrofin@chromium.org
    
    Change-Id: I44560c43e51be13c4461208368e21137b115656c
    Reviewed-on: https://chromium-review.googlesource.com/824523Reviewed-by: 's avatarMircea Trofin <mtrofin@chromium.org>
    Commit-Queue: Andreas Haas <ahaas@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#50090}
    2c3fae96
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.gyp Loading commit data...
perf.isolate Loading commit data...