зеркало из https://github.com/github/ruby.git
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:
Родитель
58fd54f914
Коммит
d8b0f1f7a8
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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче