summaryrefslogtreecommitdiff
path: root/vm_exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_exec.c')
-rw-r--r--vm_exec.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/vm_exec.c b/vm_exec.c
index c914a8bcca..c7057cd445 100644
--- a/vm_exec.c
+++ b/vm_exec.c
@@ -29,6 +29,15 @@ static void vm_analysis_insn(int insn);
#endif
/* #define DECL_SC_REG(r, reg) VALUE reg_##r */
+NORETURN(static void vm_stack_overflow_for_insn(void));
+static void
+vm_stack_overflow_for_insn(void)
+{
+ rb_bug("CHECK_VM_STACK_OVERFLOW_FOR_INSN: should not overflow here. "
+ "Please contact ruby-core/dev with your (a part of) script. "
+ "This check will be removed soon.");
+}
+
#if !OPT_CALL_THREADED_CODE
static VALUE
vm_exec_core(rb_thread_t *th, VALUE initial)