Commit 8a632f5c authored by Sigurd Schneider's avatar Sigurd Schneider Committed by Commit Bot

[mjsunit] Fix webkit/run-json-stringify in Debug mode again

Clang is known to use a lot of stack space for Debug builds, so
this patch lowers the recursion depth of that test.

Failing bot:

https://ci.chromium.org/p/v8/builders/luci.v8.ci/V8%20Linux%20-%20full%20debug

First failing run:

https://ci.chromium.org/p/v8/builders/luci.v8.ci/V8%20Linux%20-%20full%20debug/6606

Change-Id: Ib1da016b190fa0d9d7d38bced19f600a284c7f01
Reviewed-on: https://chromium-review.googlesource.com/c/1396079
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58555}
parent a0572f0b
......@@ -481,20 +481,20 @@ function createTests() {
});
result.push(function (jsonObject){
var deepObject = {};
for (var i = 0; i < 915; i++)
for (var i = 0; i < 700; i++)
deepObject = {next:deepObject};
return jsonObject.stringify(deepObject);
});
result.push(function (jsonObject){
var deepArray = [];
for (var i = 0; i < 1024; i++)
for (var i = 0; i < 800; i++)
deepArray = [deepArray];
return jsonObject.stringify(deepArray);
});
result.push(function (jsonObject){
var depth = 0;
function toDeepVirtualJSONObject() {
if (++depth >= 915)
if (++depth >= 700)
return {};
var r = {};
r.toJSON = toDeepVirtualJSONObject;
......
......@@ -499,14 +499,14 @@ function (jsonObject){
PASS tests[i](nativeJSON) is tests[i](JSON)
function (jsonObject){
var deepObject = {};
for (var i = 0; i < 915; i++)
for (var i = 0; i < 700; i++)
deepObject = {next:deepObject};
return jsonObject.stringify(deepObject);
}
PASS tests[i](nativeJSON) is tests[i](JSON)
function (jsonObject){
var deepArray = [];
for (var i = 0; i < 1024; i++)
for (var i = 0; i < 800; i++)
deepArray = [deepArray];
return jsonObject.stringify(deepArray);
}
......@@ -514,7 +514,7 @@ PASS tests[i](nativeJSON) is tests[i](JSON)
function (jsonObject){
var depth = 0;
function toDeepVirtualJSONObject() {
if (++depth >= 915)
if (++depth >= 700)
return {};
var r = {};
r.toJSON = toDeepVirtualJSONObject;
......
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