Don't check for thread in gc_sweep_page
We should always have a thread when we sweep so we don't need to check that it exists.
This commit is contained in:
parent
f06670c5a2
commit
e5df8897fe
5
gc.c
5
gc.c
@ -5462,10 +5462,7 @@ gc_sweep_page(rb_objspace_t *objspace, rb_heap_t *heap, struct gc_sweep_context
|
|||||||
sweep_page->size_pool->total_freed_objects += ctx->freed_slots;
|
sweep_page->size_pool->total_freed_objects += ctx->freed_slots;
|
||||||
|
|
||||||
if (heap_pages_deferred_final && !finalizing) {
|
if (heap_pages_deferred_final && !finalizing) {
|
||||||
rb_thread_t *th = GET_THREAD();
|
gc_finalize_deferred_register(objspace);
|
||||||
if (th) {
|
|
||||||
gc_finalize_deferred_register(objspace);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if RGENGC_CHECK_MODE
|
#if RGENGC_CHECK_MODE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user