summaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-15 09:17:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-15 09:17:06 +0000
commit6990ad04e3c85f230c55fca732f922eba710bbf3 (patch)
treeb40d5a5f32138109f5c9b0006d6d90f6529a621e /proc.c
parent618565d594528a7b5ecee7942453307075215047 (diff)
downloadruby-6990ad04e3c85f230c55fca732f922eba710bbf3.tar.gz
ruby-6990ad04e3c85f230c55fca732f922eba710bbf3.tar.xz
ruby-6990ad04e3c85f230c55fca732f922eba710bbf3.zip
* vm_core.h (rb_vm_t), vm.c (rb_vm_mark): moved preallocated special
exceptions. * eval.c (Init_eval), gc.c (Init_GC), proc.c (Init_Proc): freeze preallocated special exceptions. * eval.c (rb_longjmp): duplicate the thrown exception to set backtrace if it was frozen. * gc.c (rb_memerror): raise nomem_error without backtrace if failed to make backtrace. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 3234c0e03..eecff7ae1 100644
--- a/proc.c
+++ b/proc.c
@@ -1756,7 +1756,7 @@ Init_Proc(void)
rb_eSysStackError = rb_define_class("SystemStackError", rb_eException);
sysstack_error = rb_exc_new2(rb_eSysStackError, "stack level too deep");
OBJ_TAINT(sysstack_error);
- rb_register_mark_object(sysstack_error);
+ OBJ_FREEZE(sysstack_error);
/* utility functions */
rb_define_global_function("proc", rb_block_proc, 0);