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

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

Issue 940963005: Revert of WebAudio: Fix AudioNode leak in a case that AudioNode is not disconnected from the ... (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « Source/platform/heap/Heap.cpp ('k') | Source/platform/heap/ThreadState.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 5d0f2b2136eb08a45d9741f705b82a89bb54ed3c..3cfbc5357d5efa316d8e47d287330a358c4c8172 100644
--- a/Source/platform/heap/HeapTest.cpp
+++ b/Source/platform/heap/HeapTest.cpp
@@ -5571,18 +5571,4 @@
EXPECT_EQ(GrowsTowardsLower, stackGrowthDirection());
}
-TEST(HeapTest, Zombie)
-{
- Bar::s_live = 0;
- Baz* baz = Baz::create(Bar::create());
- ThreadState::current()->markAsZombie(baz);
- Heap::collectGarbage(ThreadState::NoHeapPointersOnStack);
- // |baz| and a Bar shouldn't be collected.
- EXPECT_EQ(1u, Bar::s_live);
-
- ThreadState::current()->purifyZombies();
- Heap::collectGarbage(ThreadState::NoHeapPointersOnStack);
- EXPECT_EQ(0u, Bar::s_live);
-}
-
} // namespace blink
« no previous file with comments | « Source/platform/heap/Heap.cpp ('k') | Source/platform/heap/ThreadState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698