Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* 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
  • Loading branch information...
commit 26e553d0ed235ce4f1100405c966c65ef8e01c2d 1 parent 4ef3a23
@ko1 ko1 authored
Showing with 16 additions and 0 deletions.
  1. +7 −0 ChangeLog
  2. +2 −0  vm_exec.c
  3. +7 −0 vm_exec.h
View
7 ChangeLog
@@ -1,3 +1,10 @@
+Wed Dec 18 14:32:06 2013 Koichi Sasada <ko1@atdot.net>
+
+ * 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.
+
Wed Dec 18 10:00:22 2013 Eric Hodel <drbrain@segment7.net>
* lib/rubygems: Update to RubyGems master d8f12e2. This increases the
View
2  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
View
7 vm_exec.h
@@ -169,7 +169,14 @@ default: \
#endif
#define SCREG(r) (reg_##r)
+
+#define VM_DEBUG_STACKOVERFLOW 0
+
+#if VM_DEBUG_STACKOVERFLOW
#define CHECK_VM_STACK_OVERFLOW_FOR_INSN(cfp, margin) \
WHEN_VM_STACK_OVERFLOWED(cfp, (cfp)->sp, margin) vm_stack_overflow_for_insn()
+#else
+#define CHECK_VM_STACK_OVERFLOW_FOR_INSN(cfp, margin)
+#endif
#endif /* RUBY_VM_EXEC_H */
Please sign in to comment.
Something went wrong with that request. Please try again.