Ignore:
Timestamp:
Aug 14, 2015, 9:53:37 AM (10 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r188444.
https://bugs.webkit.org/show_bug.cgi?id=148029

Broke GTK and EFL (see bug #148027) (Requested by philn on
#webkit).

Reverted changeset:

"Use WTF::Lock and WTF::Condition instead of WTF::Mutex,
WTF::ThreadCondition, std::mutex, and std::condition_variable"
https://bugs.webkit.org/show_bug.cgi?id=147999
http://trac.webkit.org/changeset/188444

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/interpreter/JSStack.cpp

    r188444 r188475  
    11/*
    2  * Copyright (C) 2008, 2013, 2014, 2015 Apple Inc. All rights reserved.
     2 * Copyright (C) 2008, 2013, 2014 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    3434#include "JSCInlines.h"
    3535#include "Options.h"
    36 #include <wtf/Lock.h>
    3736
    3837namespace JSC {
     
    4140static size_t committedBytesCount = 0;
    4241
    43 static StaticLock stackStatisticsMutex;
     42static Mutex& stackStatisticsMutex()
     43{
     44    DEPRECATED_DEFINE_STATIC_LOCAL(Mutex, staticMutex, ());
     45    return staticMutex;
     46}   
    4447#endif // !ENABLE(JIT)
    4548
     
    137140}
    138141
     142void JSStack::initializeThreading()
     143{
     144    stackStatisticsMutex();
     145}
     146
    139147void JSStack::addToCommittedByteCount(long byteCount)
    140148{
    141     LockHolder locker(stackStatisticsMutex);
     149    MutexLocker locker(stackStatisticsMutex());
    142150    ASSERT(static_cast<long>(committedBytesCount) + byteCount > -1);
    143151    committedBytesCount += byteCount;
     
    169177{
    170178#if !ENABLE(JIT)
    171     LockHolder locker(stackStatisticsMutex);
     179    MutexLocker locker(stackStatisticsMutex());
    172180    return committedBytesCount;
    173181#else
Note: See TracChangeset for help on using the changeset viewer.