summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-11-21 15:42:12 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-11-21 15:42:12 +0000
commitf1fdbf080efdf954a4773baf2dd088eddb7c03ef (patch)
tree8a2e0db3367f57d457917a2637feec1dd657b6ad /gc.c
parente15f65b004eaa43a013f8d069479c55e70563177 (diff)
* parse.y (str_extend): should check nesting parentheses in #{}.
* process.c (pst_wstopsig): returns nil unless WIFSTOPPED() is non-zero. * process.c (pst_wtermsig): returns nil unless WIFSIGNALED() is non-zero. * process.c (pst_wexitstatus): returns nil unless WIFEXITED() is non-zero. * eval.c (rb_thread_select): tv_sec and tv_usec should not be negative. * signal.c (posix_signal): do not set SA_RESTART for SIGVTALRM. * parse.y (call_args2): block_arg may follow the first argument in call_args2. * eval.c (stack_check): should avoid stack length check during raising SystemStackError exception. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gc.c b/gc.c
index effb38e..2ff8c30 100644
--- a/gc.c
+++ b/gc.c
@@ -404,17 +404,13 @@ ruby_stack_length(p)
return STACK_LENGTH;
}
-static VALUE rb_eSysStackError;
-
-void
+int
ruby_stack_check()
{
int ret;
CHECK_STACK(ret);
- if (ret) {
- rb_raise(rb_eSysStackError, "stack level too deep");
- }
+ return ret;
}
#define MARK_STACK_MAX 1024
@@ -1522,6 +1518,4 @@ Init_GC()
rb_global_variable(&finalizers);
rb_gc_unregister_address(&rb_mObSpace);
finalizers = rb_ary_new();
-
- rb_eSysStackError = rb_define_class("SystemStackError", rb_eStandardError);
}