[前][次][番号順一覧][スレッド一覧]

ruby-changes:47511

From: nobu <ko1@a...>
Date: Mon, 21 Aug 2017 15:46:52 +0900 (JST)
Subject: [ruby-changes:47511] nobu:r59627 (trunk): vm_core.h: ruby_error_stackfatal

nobu	2017-08-21 15:46:46 +0900 (Mon, 21 Aug 2017)

  New Revision: 59627

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59627

  Log:
    vm_core.h: ruby_error_stackfatal
    
    * vm_core.h (ruby_special_exceptions): rename sysstack_gc as
      stackfatal.
    
    * eval.c (Init_eval): modified the message for stackfatal error as
      "critical region".

  Modified files:
    trunk/eval.c
    trunk/vm_core.h
    trunk/vm_insnhelper.c
Index: vm_core.h
===================================================================
--- vm_core.h	(revision 59626)
+++ vm_core.h	(revision 59627)
@@ -455,7 +455,7 @@ enum ruby_special_exceptions { https://github.com/ruby/ruby/blob/trunk/vm_core.h#L455
     ruby_error_reenter,
     ruby_error_nomemory,
     ruby_error_sysstack,
-    ruby_error_sysstack_gc,
+    ruby_error_stackfatal,
     ruby_error_stream_closed,
     ruby_special_error_count
 };
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 59626)
+++ vm_insnhelper.c	(revision 59627)
@@ -58,7 +58,7 @@ rb_threadptr_stack_overflow(rb_thread_t https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L58
 {
     if (rb_during_gc()) {
 	th->ec.raised_flag = RAISED_STACKOVERFLOW;
-	th->ec.errinfo = th->vm->special_exceptions[ruby_error_sysstack_gc];
+	th->ec.errinfo = th->vm->special_exceptions[ruby_error_stackfatal];
 	TH_JUMP_TAG(th, TAG_RAISE);
     }
 #ifdef USE_SIGALTSTACK
Index: eval.c
===================================================================
--- eval.c	(revision 59626)
+++ eval.c	(revision 59627)
@@ -1930,7 +1930,7 @@ Init_eval(void) https://github.com/ruby/ruby/blob/trunk/eval.c#L1930
     rb_define_global_function("untrace_var", rb_f_untrace_var, -1);	/* in variable.c */
 
     rb_vm_register_special_exception(ruby_error_reenter, rb_eFatal, "exception reentered");
-    rb_vm_register_special_exception(ruby_error_sysstack_gc, rb_eFatal, "machine stack overflow while GC is running.");
+    rb_vm_register_special_exception(ruby_error_stackfatal, rb_eFatal, "machine stack overflow in critical region");
 
     id_signo = rb_intern_const("signo");
     id_status = rb_intern_const("status");

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]