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

ruby-changes:60792

From: Nobuyoshi <ko1@a...>
Date: Thu, 16 Apr 2020 18:09:28 +0900 (JST)
Subject: [ruby-changes:60792] 693378f105 (master): Moved noreturn call to end of noreturn function

https://git.ruby-lang.org/ruby.git/commit/?id=693378f105

From 693378f1051b6f32b1f4079b9133fb37a401b738 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 16 Apr 2020 18:02:11 +0900
Subject: Moved noreturn call to end of noreturn function


diff --git a/gc.c b/gc.c
index a1b8dcf..115afa1 100644
--- a/gc.c
+++ b/gc.c
@@ -9573,10 +9573,10 @@ gc_raise(VALUE exc, const char *fmt, ...) https://github.com/ruby/ruby/blob/trunk/gc.c#L9573
         /* Not in a ruby thread */
         fprintf(stderr, "%s", "[FATAL] ");
         vfprintf(stderr, fmt, ap);
-        abort();
     }
 
     va_end(ap);
+    abort();
 }
 
 static void objspace_xfree(rb_objspace_t *objspace, void *ptr, size_t size);
-- 
cgit v0.10.2


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

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