Description[d8 Workers] Fix bug creating Worker during main thread termination
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
Committed: https://crrev.com/a87db3dec86e220a402377ca244f879ed0128bfb
Cr-Commit-Position: refs/heads/master@{#29911}
Patch Set 1 #Patch Set 2 : . #
Total comments: 2
Patch Set 3 : doc comments, make running_ atomic #
Total comments: 2
Patch Set 4 : typo #
Messages
Total messages: 11 (3 generated)
|