Commit 2c555da9 authored by Leszek Swirski's avatar Leszek Swirski Committed by Commit Bot

[test] Fix mjsunit/regress/regress-542823 on PPC

PPC has a larger page size than other platforms, so increase the page
size in the test to account for this.

Change-Id: I392064e9ef3f87c5bddb7763b35661aee5b4669d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2502330
Auto-Submit: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: 's avatarMilad Fa <mfarazma@redhat.com>
Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70857}
parent 71220b3b
......@@ -5,12 +5,13 @@
// Flags: --allow-natives-syntax
(function() {
const page_size_bits = 18;
const max_heap_object_size = (1 << (page_size_bits - 1));
// kPageSizeBits is 19 on PPC.
const kPageSizeBits = 19;
const kMaxHeapObjectSize = (1 << (kPageSizeBits - 1));
const filler = "Large amount of text per element, so that the joined array is"
+ "large enough to be allocated in the large object space"
const size = Math.ceil(max_heap_object_size / filler.length + 1);
const size = Math.ceil(kMaxHeapObjectSize / filler.length + 1);
const arr = Array(size).fill(filler);
for (let i = 0; i < 10; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment