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

ruby-changes:45757

From: naruse <ko1@a...>
Date: Sat, 11 Mar 2017 19:17:41 +0900 (JST)
Subject: [ruby-changes:45757] naruse:r57830 (ruby_2_4): merge revision(s) 57170-57172: [Backport #13066]

naruse	2017-03-11 19:17:35 +0900 (Sat, 11 Mar 2017)

  New Revision: 57830

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

  Log:
    merge revision(s) 57170-57172: [Backport #13066]
    
    test/unit.rb: restore parallel option
    
    * test/lib/test/unit.rb (_run_parallel): restore parallel option
      after retrying for --repeat-count option.
    ------------------------------------------------------------------------
    r57170 | nobu | 2016-12-24 20:56:12 +0900 (Sat, 24 Dec 2016) | 1 line
    
    time.c: fix typo in value_insane_p
    ------------------------------------------------------------------------
    r57171 | nobu | 2016-12-24 21:19:23 +0900 (Sat, 24 Dec 2016) | 1 line
    
    time.c: remove debug code
    ------------------------------------------------------------------------
    r57172 | nobu | 2016-12-24 21:21:52 +0900 (Sat, 24 Dec 2016) | 4 lines
    
    time.c: fix type of usec2subsecx
    
    * time.c (usec2subsecx): fix return type, which is a numeric
      object but not a long int.  [ruby-dev:49912] [Bug #13066]

  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/time.c
    branches/ruby_2_4/version.h
Index: ruby_2_4/time.c
===================================================================
--- ruby_2_4/time.c	(revision 57829)
+++ ruby_2_4/time.c	(revision 57830)
@@ -53,41 +53,6 @@ eq(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/ruby_2_4/time.c#L53
     return RTEST(rb_funcall(x, id_eq, 1, y));
 }
 
-#ifdef _MSC_VER
-static void *
-value_insane_p(VALUE x)
-{
-    VALUE klass;
-    LPEXCEPTION_POINTERS info;
-    void *failed_address = 0;
-    if (SPECIAL_CONST_P(x)) return 0;
-    if (!RBASIC_CLASS(x)) return (void *)x;
-    __try {
-	RB_GC_GUARD(klass) = RBASIC_CLASS(x);
-    }
-    __except (GetExceptionCode() == EXCEPTION_ACCESS_VIOLATION ?
-	      (info = GetExceptionInformation(), EXCEPTION_EXECUTE_HANDLER) :
-	      EXCEPTION_CONTINUE_SEARCH) {
-	PEXCEPTION_RECORD rec = info->ExceptionRecord;
-	failed_address = (void *)rec->ExceptionInformation[1];
-    }
-    return failed_address;
-}
-
-static void
-inquire_value(VALUE x, const char *mesg)
-{
-    void *failed_address = value_insane_p(x);
-    if (failed_address) {
-	rb_fatal("Access violation at %p: class of %p: %s",
-		 failed_address, (void *)x, mesg);
-    }
-}
-#else
-# define value_insane_p(x) ((void)(x), 0)
-# define inquire_value(x, mesg) (void)value_insane_p(x)
-#endif
-
 static int
 cmp(VALUE x, VALUE y)
 {
@@ -98,8 +63,6 @@ cmp(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/ruby_2_4/time.c#L63
             return 1;
         return 0;
     }
-    inquire_value(x, "cmp(x)");
-    inquire_value(y, "cmp(y)");
     return rb_cmpint(rb_funcall(x, id_cmp, 1, y), x, y);
 }
 
@@ -2482,7 +2445,7 @@ obj2subsecx(VALUE obj, VALUE *subsecx) https://github.com/ruby/ruby/blob/trunk/ruby_2_4/time.c#L2445
     return obj2ubits(obj, 6); /* vtm->sec */
 }
 
-static long
+static VALUE
 usec2subsecx(VALUE obj)
 {
     if (RB_TYPE_P(obj, T_STRING)) {
@@ -2618,12 +2581,6 @@ time_arg(int argc, VALUE *argv, struct v https://github.com/ruby/ruby/blob/trunk/ruby_2_4/time.c#L2581
         vtm->sec  = NIL_P(v[5])?0:obj2subsecx(v[5], &vtm->subsecx);
     }
 
-    if (value_insane_p(vtm->subsecx)) {
-	rb_fatal("argc=%d, sec=%"PRIsVALUE", subsec=%"PRIsVALUE", subsecx=%p",
-		 argc, v[5], argc == 7 ? v[6] : Qnil,
-		 &RBASIC_CLASS(vtm->subsecx));
-    }
-
     validate_vtm(vtm);
     RB_GC_GUARD(vtm->subsecx);
 }
Index: ruby_2_4/version.h
===================================================================
--- ruby_2_4/version.h	(revision 57829)
+++ ruby_2_4/version.h	(revision 57830)
@@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_4/version.h#L1
 #define RUBY_VERSION "2.4.0"
-#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
-#define RUBY_PATCHLEVEL 0
+#define RUBY_RELEASE_DATE "2017-03-11"
+#define RUBY_PATCHLEVEL 1
 
-#define RUBY_RELEASE_YEAR 2016
-#define RUBY_RELEASE_MONTH 12
-#define RUBY_RELEASE_DAY 24
+#define RUBY_RELEASE_YEAR 2017
+#define RUBY_RELEASE_MONTH 3
+#define RUBY_RELEASE_DAY 11
 
 #include "ruby/version.h"
 

Property changes on: ruby_2_4
___________________________________________________________________
Added: svn:mergeinfo
   Merged /trunk:r57170-57172


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

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