Photo Booth hangs under JSC::MachineThreads::tryCopyOtherThreadStacks
authorggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 May 2015 22:59:38 +0000 (22:59 +0000)
committerggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 May 2015 22:59:38 +0000 (22:59 +0000)
commit8ee9f4708ac8bf71d5b744ad1350e9e003071cb3
treeb42ba6c530256c9ec38de0bb4a159cb97f486892
parentf6b3f44c729107c7c71716065b52e172a8523d57
Photo Booth hangs under JSC::MachineThreads::tryCopyOtherThreadStacks
https://bugs.webkit.org/show_bug.cgi?id=145395

Reviewed by Mark Hahnenberg.

No test case because we already have --threaded mode, which runs lots of
parallel GC, but it (and the original in-app test case) can't reproduce
this bug.

* heap/MachineStackMarker.cpp:
(JSC::MachineThreads::tryCopyOtherThreadStacks): Use a lock to prevent
two threads from mutually suspending each other.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@184884 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/heap/MachineStackMarker.cpp