From 270fbd9c058fc2a36dc7c44243f4a20c91143481 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 25 Dec 2012 09:57:07 +0000 Subject: * vm_core.h, eval_intern.h (CHECK_STACK_OVERFLOW): move CHECK_STACK_OVERFLOW() to vm_core.h and rename to CHECK_VM_STACK_OVERFLOW(). This change is only move and rename. * tool/instruction.rb: catch up above changes. * vm.c, vm_insnhelper.c: ditto. * vm_insnhelper.c (vm_stackoverflow): add a function to unify raising vm stackoverflow exception. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval_intern.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'eval_intern.h') diff --git a/eval_intern.h b/eval_intern.h index 3c86f98c46..ed27b8ba85 100644 --- a/eval_intern.h +++ b/eval_intern.h @@ -153,12 +153,6 @@ enum ruby_tag_type { #define SCOPE_CHECK(f) (rb_vm_cref()->nd_visi == (f)) #define SCOPE_SET(f) (rb_vm_cref()->nd_visi = (f)) -#define CHECK_STACK_OVERFLOW(cfp, margin) do \ - if ((VALUE *)((char *)(((VALUE *)(cfp)->sp) + (margin)) + sizeof(rb_control_frame_t)) >= ((VALUE *)(cfp))) { \ - rb_exc_raise(sysstack_error); \ - } \ -while (0) - void rb_thread_cleanup(void); void rb_thread_wait_other_threads(void); -- cgit v1.2.1