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

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

Issue 398793002: Oilpan: Remove support for tracing of off-heap ListHashSets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix number in test. Created 6 years, 5 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
« no previous file with comments | « Source/core/html/forms/FormController.cpp ('k') | Source/platform/heap/Visitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/HeapTest.cpp
diff --git a/Source/platform/heap/HeapTest.cpp b/Source/platform/heap/HeapTest.cpp
index ed3dcb135be008be2973f6282797a596c76a154a..f7dd8ac3d250d38e04583c71419281d8110fe7f1 100644
--- a/Source/platform/heap/HeapTest.cpp
+++ b/Source/platform/heap/HeapTest.cpp
@@ -2017,7 +2017,7 @@ public:
static OffHeapContainer* create() { return new OffHeapContainer(); }
static const int iterations = 300;
- static const int deadWrappers = 2400;
+ static const int deadWrappers = 2100;
OffHeapContainer()
{
@@ -2028,7 +2028,6 @@ public:
m_vector2.append(IntWrapper::create(i));
m_hashSet.add(IntWrapper::create(i));
m_hashMap.add(i + 103, IntWrapper::create(i));
- m_listHashSet.add(IntWrapper::create(i));
m_ownedVector.append(adoptPtr(new ShouldBeTraced(IntWrapper::create(i))));
}
@@ -2038,7 +2037,6 @@ public:
Vector<Member<IntWrapper> >::iterator v2Iterator(m_vector2.begin());
HashSet<Member<IntWrapper> >::iterator setIterator(m_hashSet.begin());
HashMap<int, Member<IntWrapper> >::iterator mapIterator(m_hashMap.begin());
- ListHashSet<Member<IntWrapper> >::iterator listSetIterator(m_listHashSet.begin());
Vector<OwnPtr<ShouldBeTraced> >::iterator ownedVectorIterator(m_ownedVector.begin());
for (int i = 0; i < iterations; i++) {
@@ -2048,7 +2046,6 @@ public:
EXPECT_EQ(i, v1Iterator->m_wrapper->value());
EXPECT_EQ(i, d2Iterator->get()->value());
EXPECT_EQ(i, v2Iterator->get()->value());
- EXPECT_EQ(i, listSetIterator->get()->value());
EXPECT_EQ(i, ownedVectorIterator->get()->m_wrapper->value());
int value = setIterator->get()->value();
EXPECT_LE(0, value);
@@ -2062,7 +2059,6 @@ public:
++v2Iterator;
++setIterator;
++mapIterator;
- ++listSetIterator;
++ownedVectorIterator;
}
EXPECT_EQ(d1Iterator, m_deque1.end());
@@ -2071,7 +2067,6 @@ public:
EXPECT_EQ(v2Iterator, m_vector2.end());
EXPECT_EQ(setIterator, m_hashSet.end());
EXPECT_EQ(mapIterator, m_hashMap.end());
- EXPECT_EQ(listSetIterator, m_listHashSet.end());
EXPECT_EQ(ownedVectorIterator, m_ownedVector.end());
}
@@ -2083,8 +2078,6 @@ public:
visitor->trace(m_vector2);
visitor->trace(m_hashSet);
visitor->trace(m_hashMap);
- visitor->trace(m_listHashSet);
- visitor->trace(m_listHashSet);
visitor->trace(m_ownedVector);
}
@@ -2094,7 +2087,6 @@ public:
Vector<Member<IntWrapper> > m_vector2;
HashSet<Member<IntWrapper> > m_hashSet;
HashMap<int, Member<IntWrapper> > m_hashMap;
- ListHashSet<Member<IntWrapper> > m_listHashSet;
Vector<OwnPtr<ShouldBeTraced> > m_ownedVector;
};
« no previous file with comments | « Source/core/html/forms/FormController.cpp ('k') | Source/platform/heap/Visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698