Changeset 121928 in webkit


Ignore:
Timestamp:
Jul 5, 2012 5:04:05 PM (12 years ago)
Author:
msaboff@apple.com
Message:

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):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r121925 r121928  
     12012-07-05  Michael Saboff  <msaboff@apple.com>
     2
     3        JSString::tryHashConstLock() fails to get exclusive lock
     4        https://bugs.webkit.org/show_bug.cgi?id=90639
     5
     6        Reviewed by Oliver Hunt.
     7
     8        Added check that the string is already locked even before compare and swap.
     9
     10        * heap/MarkStack.cpp:
     11        (JSC::JSString::tryHashConstLock):
     12
    1132012-07-04  Filip Pizlo  <fpizlo@apple.com>
    214
  • trunk/Source/JavaScriptCore/heap/MarkStack.cpp

    r121925 r121928  
    547547#if ENABLE(PARALLEL_GC)
    548548    unsigned currentFlags = m_flags;
     549
     550    if (currentFlags & HashConstLock)
     551        return false;
     552
    549553    unsigned newFlags = currentFlags | HashConstLock;
    550554
Note: See TracChangeset for help on using the changeset viewer.