зеркало из https://github.com/github/ruby.git
* gc.c (RVALUE_PROMOTED): fix type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
50214475a9
Коммит
ce7c13ef4d
|
@ -1,3 +1,7 @@
|
|||
Thu Jun 20 00:05:07 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (RVALUE_PROMOTED): fix type.
|
||||
|
||||
Wed Jun 19 23:39:01 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (garbage_collect_test): rewrite checking code.
|
||||
|
|
2
gc.c
2
gc.c
|
@ -526,7 +526,7 @@ RVALUE_PROMOTED(VALUE obj)
|
|||
int result = FL_TEST2((obj), FL_OLDGEN);
|
||||
|
||||
if (RGENGC_CHECK_MODE > 0) {
|
||||
int bitmap_result = RVALUE_PROMOTED_FROM_BITMAP(obj);
|
||||
int bitmap_result = RVALUE_PROMOTED_FROM_BITMAP(obj) ? TRUE : FALSE;
|
||||
if (!result != !bitmap_result) rb_bug("RVALUE_PROMOTED: %p (%s) flag %d but bitmap is %d\n",
|
||||
(void *)obj, obj_type_name(obj), !!result, !!bitmap_result);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче