[前][次][番号順一覧][スレッド一覧]

ruby-changes:66868

From: Peter <ko1@a...>
Date: Thu, 22 Jul 2021 23:10:45 +0900 (JST)
Subject: [ruby-changes:66868] 62661dd9e4 (master): Don't recompute the heap page

https://git.ruby-lang.org/ruby.git/commit/?id=62661dd9e4

From 62661dd9e4ce107eccb5aa6146f9295dd9b78179 Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter@p...>
Date: Thu, 22 Jul 2021 09:28:05 -0400
Subject: Don't recompute the heap page

We already page the page of the zombie calculated. Don't recalculate the
page.
---
 gc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gc.c b/gc.c
index 4a087ca..9847aa4 100644
--- a/gc.c
+++ b/gc.c
@@ -4062,7 +4062,7 @@ finalize_list(rb_objspace_t *objspace, VALUE zombie) https://github.com/ruby/ruby/blob/trunk/gc.c#L4062
             heap_pages_final_slots--;
             page->final_slots--;
             page->free_slots++;
-            heap_page_add_freeobj(objspace, GET_HEAP_PAGE(zombie), zombie);
+            heap_page_add_freeobj(objspace, page, zombie);
             objspace->profile.total_freed_objects++;
         }
         RB_VM_LOCK_LEAVE();
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]