mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
remove rb_objspace_pinned_object_p()
Nobody uses this function other than gc.c. We only need RVALUE_PINNED().
This commit is contained in:
parent
c990b3c41a
commit
c280519256
1 changed files with 1 additions and 7 deletions
8
gc.c
8
gc.c
|
@ -4941,12 +4941,6 @@ rb_objspace_marked_object_p(VALUE obj)
|
|||
return RVALUE_MARKED(obj) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
int
|
||||
rb_objspace_pinned_object_p(VALUE obj)
|
||||
{
|
||||
return RVALUE_PINNED(obj) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
static inline void
|
||||
gc_mark_set_parent(rb_objspace_t *objspace, VALUE obj)
|
||||
{
|
||||
|
@ -7335,7 +7329,7 @@ gc_is_moveable_obj(rb_objspace_t *objspace, VALUE obj)
|
|||
return FALSE;
|
||||
}
|
||||
}
|
||||
return !rb_objspace_pinned_object_p(obj);
|
||||
return !RVALUE_PINNED(obj);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue