Chromium Code Reviews

Unified Diff: Source/wtf/WTF.cpp

Issue 268673012: Don't set WTF::Partitions::s_initialized to true before initializing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/WTF.cpp
diff --git a/Source/wtf/WTF.cpp b/Source/wtf/WTF.cpp
index a3d3f8b4efc7f044d35f9c53f5394d6e94e266d4..219d92155fa193711c396b9613a2f7c2db936d19 100644
--- a/Source/wtf/WTF.cpp
+++ b/Source/wtf/WTF.cpp
@@ -79,8 +79,8 @@ void Partitions::initialize()
// Guard against two threads hitting here in parallel.
spinLockLock(&lock);
if (!s_initialized) {
- s_initialized = true;
m_bufferAllocator.init();
+ s_initialized = true;
}
spinLockUnlock(&lock);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine