JSString::tryHashConstLock() fails to get exclusive lock
authormsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Jul 2012 00:04:05 +0000 (00:04 +0000)
committermsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Jul 2012 00:04:05 +0000 (00:04 +0000)
commitb1b64c7d7c98bd7f06492bd6a6bccf4d56dd383e
treead8d79210a972be73f2b00bc8d87b31097a0989b
parentf14b74af2bed1da051475897e9c904cb629dfe29
JSString::tryHashConstLock() fails to get exclusive lock
https://bugs.webkit.org/show_bug.cgi?id=90639

Reviewed by Oliver Hunt.

Added check that the string is already locked even before compare and swap.

* heap/MarkStack.cpp:
(JSC::JSString::tryHashConstLock):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121928 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/heap/MarkStack.cpp