From d20093246bc1666ad0ad52d757cad1730ad69b2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Thu, 30 Jul 2015 12:05:20 +0200 Subject: [PATCH] src: disable vector ICs on arm A bug on ARMv6 makes the process crash when the V8 debugger is used. Disabling vector ICs as a workaround. V8-Bug: https://code.google.com/p/v8/issues/detail?id=4338 PR-URL: https://github.com/nodejs/io.js/pull/2220 Reviewed-By: Ben Noordhuis Reviewed-By: Ali Ijaz Sheikh Reviewed-By: Rod Vagg --- src/node.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/node.cc b/src/node.cc index 42b89354e7..7c0a80ec31 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3657,6 +3657,11 @@ void Init(int* argc, // TODO(bnoordhuis): Remove test/parallel/test-arm-math-exp-regress-1376.js // and this workaround when v8:4019 has been fixed and the patch back-ported. V8::SetFlagsFromString("--nofast_math", sizeof("--nofast_math") - 1); + // See https://github.com/nodejs/io.js/pull/2220#issuecomment-126200059 + // and https://code.google.com/p/v8/issues/detail?id=4338 + // TODO(targos): Remove this workaround when v8:4338 has been fixed and the + // patch back-ported. + V8::SetFlagsFromString("--novector_ics", sizeof("--novector_ics") - 1); #endif #if defined(NODE_V8_OPTIONS)