Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Unified Diff: third_party/WebKit/Source/platform/heap/HeapTest.cpp

Issue 2691073004: Remove SafePointAwareMutexLocker (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/heap/HeapTest.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapTest.cpp b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
index 7b08f91a2732e650abb1ef9ec8bae3da7b0c0bd1..04b6e40969c9bab3f0f8dbc3286025d5cd4ecaad 100644
--- a/third_party/WebKit/Source/platform/heap/HeapTest.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
@@ -5422,7 +5422,7 @@ class DestructorLockingObject
}
virtual ~DestructorLockingObject() {
- SafePointAwareMutexLocker lock(recursiveMutex());
+ MutexLocker lock(recursiveMutex());
++s_destructorCalls;
}
@@ -6102,7 +6102,7 @@ TEST(HeapTest, CrossThreadWeakPersistent) {
object);
object = nullptr;
{
- SafePointAwareMutexLocker recursiveMutexLocker(recursiveMutex());
+ MutexLocker recursiveMutexLocker(recursiveMutex());
EXPECT_EQ(0, DestructorLockingObject::s_destructorCalls);
}
@@ -6116,7 +6116,7 @@ TEST(HeapTest, CrossThreadWeakPersistent) {
// Step 5: Make sure the weak persistent is cleared.
EXPECT_FALSE(crossThreadWeakPersistent.get());
{
- SafePointAwareMutexLocker recursiveMutexLocker(recursiveMutex());
+ MutexLocker recursiveMutexLocker(recursiveMutex());
EXPECT_EQ(1, DestructorLockingObject::s_destructorCalls);
}

Powered by Google App Engine
This is Rietveld 408576698