diff --git a/ChangeLog b/ChangeLog index 702bc23289..a3fc2a7749 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Jun 7 13:22:43 2013 NARUSE, Yui + + * 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 * rational.c (numeric_quo): move num_quo in numeric.c to numeric_quo diff --git a/gc.c b/gc.c index f97a74e2dc..eb37abd82b 100644 --- a/gc.c +++ b/gc.c @@ -2288,7 +2288,7 @@ ready_to_gc(rb_objspace_t *objspace) } #if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 4 -__attribute__((optimize("O0"))) +__attribute__((noinline)) #endif static void before_gc_sweep(rb_objspace_t *objspace)