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

Unified Diff: test/cctest/heap/test-heap.cc

Issue 2209583002: [heap] Remove border page (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Allow empty intermediate generation Created 4 years, 3 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 | « src/heap/spaces-inl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/heap/test-heap.cc
diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc
index 4387e11e479e983cfd342ec644ef73cae470856a..b5a24c670d95c3342e1cfea80f14ec7c5d220186 100644
--- a/test/cctest/heap/test-heap.cc
+++ b/test/cctest/heap/test-heap.cc
@@ -7110,5 +7110,20 @@ TEST(RememberedSetRemoveRange) {
});
}
+TEST(EmptyIntermediateGeneration) {
+ CcTest::InitializeVM();
+ Heap* heap = CcTest::heap();
+ heap::GcAndSweep(heap, OLD_SPACE);
+ v8::HandleScope scope(CcTest::isolate());
+ {
+ v8::HandleScope temp_scope(CcTest::isolate());
+ heap::SimulateFullSpace(heap->new_space());
+ }
+ heap::GcAndSweep(heap, OLD_SPACE);
+ for (Page* p : *heap->new_space()) {
+ CHECK(!p->InIntermediateGeneration());
+ }
+}
+
} // namespace internal
} // namespace v8
« no previous file with comments | « src/heap/spaces-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698