mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
deps: V8: cherry-pick 811fe8b04203
Original commit message:
Skip regress-498816446-3 when there is not enough memory
Currently causing a test failure on a machine with 8Gb of memory:
```
regress-498816446-3.js:25: RangeError: Array buffer allocation failed
```
Change-Id: I9e0396445c0b870d0070d666f9d6081b93e80f9c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8252113
Commit-Queue: Milad Farazmand <mfarazma@ibm.com>
Reviewed-by: Darius Mercadier <dmercadier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#109426}
Refs: https://github.com/v8/v8/commit/811fe8b0420359456f4cb8ea40b2df84a66033d9
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/65161
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
This commit is contained in:
1 parent
677424cd86
commit
c419eaca14
2 files changed
+17
-5
No files matched your search
+1
-1
@@ -44,7 +44,7 @@
|
||||
|
||||
# Reset this number to 0 on major V8 upgrades.
|
||||
# Increment by one for each non-official patch applied to deps/v8.
|
||||
'v8_embedder_string': '-node.10',
|
||||
'v8_embedder_string': '-node.11',
|
||||
|
||||
##### V8 defaults for Node.js #####
|
||||
|
||||
|
||||
+16
-4
@@ -21,7 +21,19 @@ foo(ta);
|
||||
foo(ta);
|
||||
assertOptimized(foo);
|
||||
|
||||
// Triggering deopt
|
||||
ta = new Int32Array(0xffffffff+1);
|
||||
assertThrows(() => foo(ta), RangeError, "Invalid array length");
|
||||
assertUnoptimized(foo);
|
||||
// Triggering deopt.
|
||||
var skip = false;
|
||||
try {
|
||||
ta = new Int32Array(0xffffffff+1);
|
||||
} catch (e) {
|
||||
if (/Array buffer allocation failed/.test(e.message)) {
|
||||
skip = true; // We don't have enough memory, just skip the test.
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
if (!skip) {
|
||||
assertThrows(() => foo(ta), RangeError, "Invalid array length");
|
||||
assertUnoptimized(foo);
|
||||
}
|
||||
Reference in new issue
Block a user