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

ruby-changes:43615

From: usa <ko1@a...>
Date: Fri, 15 Jul 2016 15:35:46 +0900 (JST)
Subject: [ruby-changes:43615] usa:r55688 (trunk): * time.c (time_arg): it seems that this function sometimes causes SEGV

usa	2016-07-15 15:35:37 +0900 (Fri, 15 Jul 2016)

  New Revision: 55688

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

  Log:
    * time.c (time_arg): it seems that this function sometimes causes SEGV
      on mswin CI, then force to prevent `vtm->subsecx` from GC.  this is
      experimental.

  Modified files:
    trunk/ChangeLog
    trunk/time.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55687)
+++ ChangeLog	(revision 55688)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jul 15 15:32:13 2016  NAKAMURA Usaku  <usa@r...>
+
+	* time.c (time_arg): it seems that this function sometimes causes SEGV
+	  on mswin CI, then force to prevent `vtm->subsecx` from GC.  this is
+	  experimental.
+
 Fri Jul 15 09:53:48 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* enc/unicode/case-folding.rb, tool/enc-unicode.rb: check if
Index: time.c
===================================================================
--- time.c	(revision 55687)
+++ time.c	(revision 55688)
@@ -2591,6 +2591,7 @@ time_arg(int argc, VALUE *argv, struct v https://github.com/ruby/ruby/blob/trunk/time.c#L2591
     }
 
     validate_vtm(vtm);
+    RB_GC_GUARD(vtm->subsecx);
 }
 
 static int

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

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