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

* gc.c (RVALUE_PROMOTE): fix parameter name (x' to obj')

and make it inline function (like RVALUE_PROMOTE).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-06-10 08:15:31 +00:00
parent d917e65143
commit a03ac78b2c
2 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Mon Jun 10 17:14:01 2013 Koichi Sasada <ko1@atdot.net>
* gc.c (RVALUE_PROMOTE): fix parameter name (`x' to `obj')
and make it inline function (like RVALUE_PROMOTE).
Mon Jun 10 16:22:50 2013 Koichi Sasada <ko1@atdot.net>
* array.c (rb_ary_new_from_values): add assertion

10
gc.c
View file

@ -516,11 +516,13 @@ RVALUE_PROMOTE(VALUE obj)
}
#endif
}
#define RVALUE_DEMOTE(x) do{ \
FL_UNSET2((x), FL_OLDGEN); \
CLEAR_IN_BITMAP(GET_HEAP_OLDGEN_BITS(obj), obj); \
}while(0)
static inline void
RVALUE_DEMOTE(VALUE obj)
{
FL_UNSET2(obj, FL_OLDGEN);
CLEAR_IN_BITMAP(GET_HEAP_OLDGEN_BITS(obj), obj);
}
#endif
static void