summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-15 06:35:37 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-15 06:35:37 +0000
commit363c90853ec4cceb58ef1d2d3192a8c65a35aa13 (patch)
tree28a3756bd598f5a35c0bb4955f543d37efbac059
parente827c334c3a03e1ad75792605c021695a5b74fd6 (diff)
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--time.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2f84c120f03..1313d5c71aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Jul 15 15:32:13 2016 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * 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@ruby-lang.org>
* enc/unicode/case-folding.rb, tool/enc-unicode.rb: check if
diff --git a/time.c b/time.c
index 9f009b5a158..2d1ce381201 100644
--- a/time.c
+++ b/time.c
@@ -2591,6 +2591,7 @@ time_arg(int argc, VALUE *argv, struct vtm *vtm)
}
validate_vtm(vtm);
+ RB_GC_GUARD(vtm->subsecx);
}
static int