mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Objects are born embedded, so we don't need to check ivpr
It's not necessary to check ivpt because objects are allocated as "embedded" by default
This commit is contained in:
parent
58fd54f914
commit
d8b0f1f7a8
1 changed files with 1 additions and 2 deletions
3
gc.c
3
gc.c
|
@ -2734,8 +2734,7 @@ obj_free(rb_objspace_t *objspace, VALUE obj)
|
|||
|
||||
switch (BUILTIN_TYPE(obj)) {
|
||||
case T_OBJECT:
|
||||
if ((RANY(obj)->as.basic.flags & ROBJECT_EMBED) ||
|
||||
RANY(obj)->as.object.as.heap.ivptr == NULL) {
|
||||
if (RANY(obj)->as.basic.flags & ROBJECT_EMBED) {
|
||||
RB_DEBUG_COUNTER_INC(obj_obj_embed);
|
||||
}
|
||||
else if (ROBJ_TRANSIENT_P(obj)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue