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

ruby-changes:29031

From: naruse <ko1@a...>
Date: Wed, 5 Jun 2013 15:28:06 +0900 (JST)
Subject: [ruby-changes:29031] naruse:r41083 (trunk): * gc.c (before_gc_sweep): don't optimize it to avoid segv on Ubuntu

naruse	2013-06-05 15:27:43 +0900 (Wed, 05 Jun 2013)

  New Revision: 41083

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41083

  Log:
    * gc.c (before_gc_sweep): don't optimize it to avoid segv on Ubuntu
      10.04 gcc 4.4.
      http://u32.rubyci.org/~chkbuild/ruby-trunk/log/20130527T190301Z.diff.html.gz

  Modified files:
    trunk/ChangeLog
    trunk/gc.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41082)
+++ ChangeLog	(revision 41083)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jun  5 15:26:10 2013  NARUSE, Yui  <naruse@r...>
+
+	* gc.c (before_gc_sweep): don't optimize it to avoid segv on Ubuntu
+	  10.04 gcc 4.4.
+	  http://u32.rubyci.org/~chkbuild/ruby-trunk/log/20130527T190301Z.diff.html.gz
+
 Wed Jun  5 09:46:46 2013  NARUSE, Yui  <naruse@r...>
 
 	* test/fileutils/test_fileutils.rb (TestFileUtils#test_mkdir): add
Index: gc.c
===================================================================
--- gc.c	(revision 41082)
+++ gc.c	(revision 41083)
@@ -2276,6 +2276,10 @@ ready_to_gc(rb_objspace_t *objspace) https://github.com/ruby/ruby/blob/trunk/gc.c#L2276
     return TRUE;
 }
 
+#if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 4
+# pragma GCC push_options
+# pragma GCC optimize ("O0")
+#endif
 static void
 before_gc_sweep(rb_objspace_t *objspace)
 {
@@ -2297,6 +2301,9 @@ before_gc_sweep(rb_objspace_t *objspace) https://github.com/ruby/ruby/blob/trunk/gc.c#L2301
 	rb_sweep_method_entry(GET_VM());
     }
 }
+#if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 4
+# pragma GCC pop_options
+#endif
 
 static void
 after_gc_sweep(rb_objspace_t *objspace)

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

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