ruby-changes:29082
From: naruse <ko1@a...>
Date: Fri, 7 Jun 2013 13:25:30 +0900 (JST)
Subject: [ruby-changes:29082] naruse:r41134 (trunk): * gc.c (before_gc_sweep): noinline can also avoid the segv instead of
naruse 2013-06-07 13:25:20 +0900 (Fri, 07 Jun 2013) New Revision: 41134 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41134 Log: * gc.c (before_gc_sweep): noinline can also avoid the segv instead of -O0 of r41084. this way is expected less slow. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 41133) +++ ChangeLog (revision 41134) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Jun 7 13:22:43 2013 NARUSE, Yui <naruse@r...> + + * gc.c (before_gc_sweep): noinline can also avoid the segv instead of + -O0 of r41084. this way is expected less slow. + Fri Jun 7 11:45:42 2013 Kenta Murata <mrkn@c...> * rational.c (numeric_quo): move num_quo in numeric.c to numeric_quo Index: gc.c =================================================================== --- gc.c (revision 41133) +++ gc.c (revision 41134) @@ -2288,7 +2288,7 @@ ready_to_gc(rb_objspace_t *objspace) https://github.com/ruby/ruby/blob/trunk/gc.c#L2288 } #if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 4 -__attribute__((optimize("O0"))) +__attribute__((noinline)) #endif static void before_gc_sweep(rb_objspace_t *objspace) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/