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

Unified Diff: test/unittests/heap/heap-unittest.cc

Issue 2942543002: [heap] Allow a minimum semi-space size of 512K. (Closed)
Patch Set: kb Created 3 years, 6 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 | « test/cctest/test-strings.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/heap/heap-unittest.cc
diff --git a/test/unittests/heap/heap-unittest.cc b/test/unittests/heap/heap-unittest.cc
index bf46b57061d56d53e2154ee7b82d14e751c00a7c..e250f3c22662b16bc16fdbd69f901f5a6667ba80 100644
--- a/test/unittests/heap/heap-unittest.cc
+++ b/test/unittests/heap/heap-unittest.cc
@@ -61,12 +61,12 @@ TEST(Heap, MaxHeapGrowingFactor) {
TEST(Heap, SemiSpaceSize) {
uint64_t configurations[][2] = {
- {0, 1 * i::Heap::kPointerMultiplier},
- {512 * i::MB, 1 * i::Heap::kPointerMultiplier},
- {1 * i::GB, 3 * i::Heap::kPointerMultiplier},
- {2 * static_cast<uint64_t>(i::GB), i::Heap::kMaxSemiSpaceSize},
- {4 * static_cast<uint64_t>(i::GB), i::Heap::kMaxSemiSpaceSize},
- {8 * static_cast<uint64_t>(i::GB), i::Heap::kMaxSemiSpaceSize}};
+ {0, i::Heap::kPointerMultiplier * (Page::kPageSize / KB)},
+ {512 * i::MB, i::Heap::kPointerMultiplier * (Page::kPageSize / KB)},
+ {1 * i::GB, i::Heap::kPointerMultiplier * (6 * Page::kPageSize / KB)},
+ {2 * static_cast<uint64_t>(i::GB), i::Heap::kMaxSemiSpaceSizeInKB},
+ {4 * static_cast<uint64_t>(i::GB), i::Heap::kMaxSemiSpaceSizeInKB},
+ {8 * static_cast<uint64_t>(i::GB), i::Heap::kMaxSemiSpaceSizeInKB}};
for (auto configuration : configurations) {
ASSERT_EQ(configuration[1],
« no previous file with comments | « test/cctest/test-strings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698