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

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

Issue 2394893002: [heap] Update verification of LO_SPACE in SizeOfInitialHeap (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/heap/test-spaces.cc
diff --git a/test/cctest/heap/test-spaces.cc b/test/cctest/heap/test-spaces.cc
index fb05c98400dd16a2f28e60bcc52d2250ae0f20df..262d0c5d5810f1bac5cf963de92f8cde603e71c1 100644
--- a/test/cctest/heap/test-spaces.cc
+++ b/test/cctest/heap/test-spaces.cc
@@ -500,6 +500,8 @@ TEST(SizeOfInitialHeap) {
->IsUndefined()) {
return;
}
+ // Initial size of LO_SPACE
+ size_t initial_lo_space = isolate->heap()->lo_space()->Size();
// The limit for each space for an empty isolate containing just the
// snapshot.
@@ -528,7 +530,7 @@ TEST(SizeOfInitialHeap) {
}
// No large objects required to perform the above steps.
- CHECK(isolate->heap()->lo_space()->IsEmpty());
+ CHECK_EQ(initial_lo_space, isolate->heap()->lo_space()->Size());
}
static HeapObject* AllocateUnaligned(NewSpace* space, int size) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698