objspace_each_pages
is also only used if GC compression is possible
This commit is contained in:
parent
c2d02a6ac2
commit
b006919200
2
gc.c
2
gc.c
@ -3729,6 +3729,7 @@ objspace_each_objects(rb_objspace_t *objspace, each_obj_callback *callback, void
|
||||
objspace_each_exec(protected, &each_obj_data);
|
||||
}
|
||||
|
||||
#if GC_CAN_COMPILE_COMPACTION
|
||||
static void
|
||||
objspace_each_pages(rb_objspace_t *objspace, each_page_callback *callback, void *data, bool protected)
|
||||
{
|
||||
@ -3740,6 +3741,7 @@ objspace_each_pages(rb_objspace_t *objspace, each_page_callback *callback, void
|
||||
};
|
||||
objspace_each_exec(protected, &each_obj_data);
|
||||
}
|
||||
#endif
|
||||
|
||||
struct os_each_struct {
|
||||
size_t num;
|
||||
|
Loading…
x
Reference in New Issue
Block a user