diff options
author | Michaël Zasso <targos@protonmail.com> | 2017-02-14 11:27:26 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2017-02-22 15:55:42 +0100 |
commit | 7a77daf24344db7942e34c962b0f1ee729ab7af5 (patch) | |
tree | e7cbe7bf4e2f4b802a8f5bc18336c546cd6a0d7f /deps/v8/test/cctest/heap/test-spaces.cc | |
parent | 5f08871ee93ea739148cc49e0f7679e33c70295a (diff) | |
download | node-new-7a77daf24344db7942e34c962b0f1ee729ab7af5.tar.gz |
deps: update V8 to 5.6.326.55
PR-URL: https://github.com/nodejs/node/pull/10992
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/v8/test/cctest/heap/test-spaces.cc')
-rw-r--r-- | deps/v8/test/cctest/heap/test-spaces.cc | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/deps/v8/test/cctest/heap/test-spaces.cc b/deps/v8/test/cctest/heap/test-spaces.cc index 262d0c5d58..fc692e331c 100644 --- a/deps/v8/test/cctest/heap/test-spaces.cc +++ b/deps/v8/test/cctest/heap/test-spaces.cc @@ -471,7 +471,7 @@ TEST(LargeObjectSpace) { CHECK(lo->Contains(ho)); while (true) { - intptr_t available = lo->Available(); + size_t available = lo->Available(); { AllocationResult allocation = lo->AllocateRaw(lo_size, NOT_EXECUTABLE); if (allocation.IsRetry()) break; } @@ -503,9 +503,15 @@ TEST(SizeOfInitialHeap) { // 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. +// The limit for each space for an empty isolate containing just the +// snapshot. +// In PPC the page size is 64K, causing more internal fragmentation +// hence requiring a larger limit. +#if V8_OS_LINUX && V8_HOST_ARCH_PPC + const size_t kMaxInitialSizePerSpace = 3 * MB; +#else const size_t kMaxInitialSizePerSpace = 2 * MB; +#endif // Freshly initialized VM gets by with the snapshot size (which is below // kMaxInitialSizePerSpace per space). @@ -530,7 +536,8 @@ TEST(SizeOfInitialHeap) { } // No large objects required to perform the above steps. - CHECK_EQ(initial_lo_space, isolate->heap()->lo_space()->Size()); + CHECK_EQ(initial_lo_space, + static_cast<size_t>(isolate->heap()->lo_space()->Size())); } static HeapObject* AllocateUnaligned(NewSpace* space, int size) { @@ -741,7 +748,7 @@ TEST(ShrinkPageToHighWaterMarkNoFiller) { CcTest::heap()->old_space()->EmptyAllocationInfo(); const size_t shrinked = page->ShrinkToHighWaterMark(); - CHECK_EQ(0, shrinked); + CHECK_EQ(0u, shrinked); } TEST(ShrinkPageToHighWaterMarkOneWordFiller) { @@ -767,7 +774,7 @@ TEST(ShrinkPageToHighWaterMarkOneWordFiller) { CHECK_EQ(filler->map(), CcTest::heap()->one_pointer_filler_map()); const size_t shrinked = page->ShrinkToHighWaterMark(); - CHECK_EQ(0, shrinked); + CHECK_EQ(0u, shrinked); } TEST(ShrinkPageToHighWaterMarkTwoWordFiller) { @@ -793,7 +800,7 @@ TEST(ShrinkPageToHighWaterMarkTwoWordFiller) { CHECK_EQ(filler->map(), CcTest::heap()->two_pointer_filler_map()); const size_t shrinked = page->ShrinkToHighWaterMark(); - CHECK_EQ(0, shrinked); + CHECK_EQ(0u, shrinked); } } // namespace internal |