Changeset 188475 in webkit for trunk/Source/JavaScriptCore/interpreter/JSStack.cpp
- Timestamp:
- Aug 14, 2015, 9:53:37 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/JSStack.cpp
r188444 r188475 1 1 /* 2 * Copyright (C) 2008, 2013, 2014 , 2015Apple Inc. All rights reserved.2 * Copyright (C) 2008, 2013, 2014 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 34 34 #include "JSCInlines.h" 35 35 #include "Options.h" 36 #include <wtf/Lock.h>37 36 38 37 namespace JSC { … … 41 40 static size_t committedBytesCount = 0; 42 41 43 static StaticLock stackStatisticsMutex; 42 static Mutex& stackStatisticsMutex() 43 { 44 DEPRECATED_DEFINE_STATIC_LOCAL(Mutex, staticMutex, ()); 45 return staticMutex; 46 } 44 47 #endif // !ENABLE(JIT) 45 48 … … 137 140 } 138 141 142 void JSStack::initializeThreading() 143 { 144 stackStatisticsMutex(); 145 } 146 139 147 void JSStack::addToCommittedByteCount(long byteCount) 140 148 { 141 LockHolder locker(stackStatisticsMutex);149 MutexLocker locker(stackStatisticsMutex()); 142 150 ASSERT(static_cast<long>(committedBytesCount) + byteCount > -1); 143 151 committedBytesCount += byteCount; … … 169 177 { 170 178 #if !ENABLE(JIT) 171 LockHolder locker(stackStatisticsMutex);179 MutexLocker locker(stackStatisticsMutex()); 172 180 return committedBytesCount; 173 181 #else
Note:
See TracChangeset
for help on using the changeset viewer.