Assume that FL_FINALIZE is in finalizer_table
If the flag FL_FINALIZE is set, then it's guaranteed to be in the finalizer_table, so we can directly assume that without checking.
This commit is contained in:
parent
11f299fab7
commit
a206ee6709
Notes:
git
2023-03-17 15:13:07 +00:00
6
gc.c
6
gc.c
@ -9861,9 +9861,9 @@ gc_is_moveable_obj(rb_objspace_t *objspace, VALUE obj)
|
||||
* prevent the objects from being collected. This check prevents
|
||||
* objects that are keys in the finalizer table from being moved
|
||||
* without directly pinning them. */
|
||||
if (st_is_member(finalizer_table, obj)) {
|
||||
return FALSE;
|
||||
}
|
||||
GC_ASSERT(st_is_member(finalizer_table, obj));
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
GC_ASSERT(RVALUE_MARKED(obj));
|
||||
GC_ASSERT(!RVALUE_PINNED(obj));
|
||||
|
Loading…
x
Reference in New Issue
Block a user