Skip to content

Commit 2e968bf

Browse files
robertsipkaZsolt Borbély
authored andcommitted
[JerryScript] Set the limit of VM recursion depth (#254)
JSRemoteTest-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
1 parent ee750a9 commit 2e968bf

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

jstest/builder/modules/jerryscript.build.config

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"--profile=%{jerryscript}/jerry-core/profiles/minimal.profile",
2626
"--toolchain=%{jerryscript}/cmake/toolchain_mcu_stm32f4.cmake",
2727
"--compile-flag=-I%{jerryscript}/targets/nuttx-stm32f4",
28-
"--compile-flag=-isystem %{nuttx}/include"
28+
"--compile-flag=-isystem %{nuttx}/include",
29+
"--vm-recursion-limit=1000"
2930
],
3031
"conditional-options": [
3132
{
@@ -80,7 +81,8 @@
8081
"--mem-heap=70",
8182
"--profile=%{jerryscript}/jerry-core/profiles/minimal.profile",
8283
"--toolchain=%{jerryscript}/cmake/toolchain_mcu_artik053.cmake",
83-
"--compile-flag='-isystem %{tizenrt}/os/include'"
84+
"--compile-flag='-isystem %{tizenrt}/os/include'",
85+
"--vm-recursion-limit=1000"
8486
],
8587
"conditional-options": [
8688
{
@@ -138,7 +140,8 @@
138140
"--all-in-one=OFF",
139141
"--linker-flag=-Wl,-Map=jerry.map",
140142
"--toolchain=%{jerryscript}/cmake/toolchain_linux_armv7l.cmake",
141-
"--profile=%{jerryscript}/jerry-core/profiles/minimal.profile"
143+
"--profile=%{jerryscript}/jerry-core/profiles/minimal.profile",
144+
"--vm-recursion-limit=1000"
142145
],
143146
"conditional-options": [
144147
{

jstest/testrunner/skiplist/jerryscript-test-descriptor.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
{ "name": "regression-test-issue-2451.js", "reason": "There's not enough memory to run." },
2525
{ "name": "regression-test-issue-2452.js", "reason": "There's not enough memory to run." },
2626
{ "name": "regression-test-issue-2453.js", "reason": "There's not enough memory to run." },
27-
{ "name": "regression-test-issue-2486.js", "reason": "There's not enough memory to run." }
27+
{ "name": "regression-test-issue-2486.js", "reason": "There's not enough memory to run." },
28+
{ "name": "vm-recursion-limit.js", "reason": "There's not enough stack to run." },
29+
{ "name": "regression-test-issue-2733.js", "reason": "There's not enough stack to run." }
30+
2831
]
2932
},
3033
"enable": []

0 commit comments

Comments
 (0)