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

ruby-changes:54073

From: nobu <ko1@a...>
Date: Sun, 9 Dec 2018 10:22:23 +0900 (JST)
Subject: [ruby-changes:54073] nobu:r66292 (trunk): Removed never-happening case

nobu	2018-12-09 10:22:16 +0900 (Sun, 09 Dec 2018)

  New Revision: 66292

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

  Log:
    Removed never-happening case
    
    get_uniq_filename never returns NULL but raises an exception on
    failure.

  Modified files:
    trunk/mjit.c
Index: mjit.c
===================================================================
--- mjit.c	(revision 66291)
+++ mjit.c	(revision 66292)
@@ -443,11 +443,6 @@ init_header_filename(void) https://github.com/ruby/ruby/blob/trunk/mjit.c#L443
     }
 
     pch_file = get_uniq_filename(0, MJIT_TMP_PREFIX "h", ".h.gch");
-    if (pch_file == NULL) {
-        xfree(header_file);
-        header_file = NULL;
-        return FALSE;
-    }
 #else
     {
         static const char pch_name[] = MJIT_HEADER_INSTALL_DIR "/" MJIT_PRECOMPILED_HEADER_NAME;

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

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