зеркало из https://github.com/github/ruby.git
* gc.c (gc_mark_ptr): add a check code for #11244.
It should be removed later. But we can remain this check because it is only a branch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d3199656be
Коммит
8b0cfe9042
|
@ -1,3 +1,10 @@
|
|||
Wed Jun 24 14:25:17 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (gc_mark_ptr): add a check code for #11244.
|
||||
|
||||
It should be removed later. But we can remain this check
|
||||
because it is only a branch.
|
||||
|
||||
Wed Jun 24 12:49:11 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* string.c (rb_fstring_cstr): new function to make a fstring from
|
||||
|
|
4
gc.c
4
gc.c
|
@ -4193,6 +4193,10 @@ gc_mark_ptr(rb_objspace_t *objspace, VALUE obj)
|
|||
{
|
||||
if (LIKELY(objspace->mark_func_data == NULL)) {
|
||||
rgengc_check_relation(objspace, obj);
|
||||
|
||||
/* check code for Bug #11244 */
|
||||
if (BUILTIN_TYPE(obj) == T_NONE) rb_bug("gc_mark_ptr: obj is T_NONE");
|
||||
|
||||
if (!gc_mark_set(objspace, obj)) return; /* already marked */
|
||||
gc_aging(objspace, obj);
|
||||
gc_grey(objspace, obj);
|
||||
|
|
Загрузка…
Ссылка в новой задаче