464dbb7e80
This reverts commit bca38dbf29
.
Reason for revert: Makes ODROIDs flaky.
BUG=v8:8086
Original change's description:
> [Tests] Fix some OOM failures on Android by explicitly setting max_old_space_size.
>
> BUG=v8:8040
>
> Change-Id: I8de22af3978f2a8eb844eabdb757bd635050f901
> Reviewed-on: https://chromium-review.googlesource.com/1181432
> Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
> Commit-Queue: Ross McIlroy <rmcilroy@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#55227}
TBR=ulan@chromium.org,rmcilroy@chromium.org
Bug: v8:8040
Change-Id: Ife980e8706ebbff4d86d87739c2f621d7a976039
Reviewed-on: https://chromium-review.googlesource.com/1188322
Commit-Queue: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55391}
13 lines
398 B
JavaScript
13 lines
398 B
JavaScript
// Copyright 2017 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
try {
|
|
var a = 'a'.repeat(1 << 28);
|
|
} catch (e) {
|
|
// If the allocation fails, we don't care, because we can't cause the
|
|
// overflow.
|
|
}
|
|
// Cause an overflow in worst-case calculation for string replacement.
|
|
JSON.stringify(a);
|