summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorgit <svn-admin@ruby-lang.org>2022-07-27 01:40:03 +0900
committergit <svn-admin@ruby-lang.org>2022-07-27 01:40:03 +0900
commit3b1ed03d8cc1422972004472fec9deadb72d19fa (patch)
tree1e138add98aed86231f12be02f5998320ce0b8a8 /gc.c
parent36d0c71acef5e80384c13f9b43419318d2127306 (diff)
* expand tabs. [ci skip]
Tabs were expanded because the file did not have any tab indentation in unedited lines. Please update your editor config, and use misc/expand_tabs.rb in the pre-commit hook.
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gc.c b/gc.c
index 24078afc5a..3ea05ba8e7 100644
--- a/gc.c
+++ b/gc.c
@@ -2238,11 +2238,11 @@ heap_page_resurrect(rb_objspace_t *objspace, rb_size_pool_t *size_pool)
ccan_list_for_each_safe(&SIZE_POOL_TOMB_HEAP(size_pool)->pages, page, next, page_node) {
asan_unlock_freelist(page);
- if (page->freelist != NULL) {
- heap_unlink_page(objspace, &size_pool->tomb_heap, page);
+ if (page->freelist != NULL) {
+ heap_unlink_page(objspace, &size_pool->tomb_heap, page);
asan_lock_freelist(page);
- return page;
- }
+ return page;
+ }
}
return NULL;