diff options
author | Peter Zhu <peter@peterzhu.ca> | 2024-04-16 11:16:19 -0400 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2024-04-16 13:24:46 -0400 |
commit | e5df8897fe999c77a2e25a85289ec286d0462617 (patch) | |
tree | 869c0654234f440a2d626eedd6702d61babd3e03 | |
parent | f06670c5a2a1daa6595018858d5cfa429a8aeae6 (diff) |
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.
-rw-r--r-- | gc.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; if (heap_pages_deferred_final && !finalizing) { - rb_thread_t *th = GET_THREAD(); - if (th) { - gc_finalize_deferred_register(objspace); - } + gc_finalize_deferred_register(objspace); } #if RGENGC_CHECK_MODE |