use attribute is more simple way for r41083
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
77857bfc87
commit
c0089b4d10
6
gc.c
6
gc.c
@ -2277,8 +2277,7 @@ ready_to_gc(rb_objspace_t *objspace)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 4
|
#if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 4
|
||||||
# pragma GCC push_options
|
__attribute__((optimize("O0")))
|
||||||
# pragma GCC optimize ("O0")
|
|
||||||
#endif
|
#endif
|
||||||
static void
|
static void
|
||||||
before_gc_sweep(rb_objspace_t *objspace)
|
before_gc_sweep(rb_objspace_t *objspace)
|
||||||
@ -2301,9 +2300,6 @@ before_gc_sweep(rb_objspace_t *objspace)
|
|||||||
rb_sweep_method_entry(GET_VM());
|
rb_sweep_method_entry(GET_VM());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 4
|
|
||||||
# pragma GCC pop_options
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
after_gc_sweep(rb_objspace_t *objspace)
|
after_gc_sweep(rb_objspace_t *objspace)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user