From 363c90853ec4cceb58ef1d2d3192a8c65a35aa13 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 15 Jul 2016 06:35:37 +0000 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ time.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2f84c120f0..1313d5c71a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Jul 15 15:32:13 2016 NAKAMURA Usaku + + * 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 * enc/unicode/case-folding.rb, tool/enc-unicode.rb: check if diff --git a/time.c b/time.c index 9f009b5a15..2d1ce38120 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