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
3
gc.c
3
gc.c
@ -5462,11 +5462,8 @@ 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;
|
||||
|
||||
if (heap_pages_deferred_final && !finalizing) {
|
||||
rb_thread_t *th = GET_THREAD();
|
||||
if (th) {
|
||||
gc_finalize_deferred_register(objspace);
|
||||
}
|
||||
}
|
||||
|
||||
#if RGENGC_CHECK_MODE
|
||||
short freelist_len = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user