summaryrefslogtreecommitdiff
path: root/vm_exec.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-18 05:33:50 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-18 05:33:50 (GMT)
commit26e553d0ed235ce4f1100405c966c65ef8e01c2d (patch)
tree24799f504489dd48b6ec36eeac1574f630b8415c /vm_exec.c
parent4ef3a2345e2e81d9ab84ce812d5dc130688ce5cb (diff)
* vm_exec.h (VM_DEBUG_STACKOVERFLOW): added.
disable stack overflow check for every stack pushing as default. * vm_exec.c (vm_stack_overflow_for_insn): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_exec.c')
-rw-r--r--vm_exec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_exec.c b/vm_exec.c
index c7057cd..a8b14e3 100644
--- a/vm_exec.c
+++ b/vm_exec.c
@@ -29,6 +29,7 @@ static void vm_analysis_insn(int insn);
#endif
/* #define DECL_SC_REG(r, reg) VALUE reg_##r */
+#if VM_DEBUG_STACKOVERFLOW
NORETURN(static void vm_stack_overflow_for_insn(void));
static void
vm_stack_overflow_for_insn(void)
@@ -37,6 +38,7 @@ vm_stack_overflow_for_insn(void)
"Please contact ruby-core/dev with your (a part of) script. "
"This check will be removed soon.");
}
+#endif
#if !OPT_CALL_THREADED_CODE
static VALUE