1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* gc.c (before_gc_sweep): noinline can also avoid the segv instead of

-O0 of r41084. this way is expected less slow.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-06-07 04:25:20 +00:00
parent 83db393e48
commit b309a3698d
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Fri Jun 7 13:22:43 2013 NARUSE, Yui <naruse@ruby-lang.org>
* 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@cookpad.com>
* rational.c (numeric_quo): move num_quo in numeric.c to numeric_quo

2
gc.c
View file

@ -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)