• binji's avatar
    [d8 Workers] Fix bug creating Worker during main thread termination · a87db3de
    binji authored
    When the main thread terminates, it forcibly terminates all Worker threads.
    When this happens, the threads objects were only half-created; they had a
    JavaScript Worker object, but not a C++ worker object.
    
    This CL fixes that bug, as well as some other fixes:
    * Signatures on Worker methods
    * Use SetAlignedPointerFromInternalField instead of using an External.
    * Remove state_ from Worker. Simplify to atomic bool running_.
    
    BUG=chromium:511880
    R=jarin@chromium.org
    LOG=n
    
    Review URL: https://codereview.chromium.org/1255563002
    
    Cr-Commit-Position: refs/heads/master@{#29911}
    a87db3de
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest 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...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
test262-es6 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...