d8 workers: make sure Shell::Quit is only called once
authorbinji <binji@chromium.org>
Tue, 14 Jul 2015 17:42:03 +0000 (10:42 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 14 Jul 2015 17:42:17 +0000 (17:42 +0000)
commit76184292b392d107609f21662a949b58bb1e258c
tree0948c71ffee96d7fdefe0ba608b38f23a7fdec55
parenta55fcc93ae8614095644007bba713a64048a864c
d8 workers: make sure Shell::Quit is only called once

When running with isolates, Quit can be called simultaneously by two threads.
If this happens, then both threads try to clean up the Workers, which could
crash.

BUG=v8:4279
R=jarin@chromium.org
R=machenbach@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/1230403003

Cr-Commit-Position: refs/heads/master@{#29654}
src/d8.cc
src/d8.h
test/mjsunit/mjsunit.status