mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* 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
This commit is contained in:
parent
4ef3a2345e
commit
26e553d0ed
3 changed files with 16 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue