ruby-changes:51485
From: normal <ko1@a...>
Date: Tue, 19 Jun 2018 16:12:49 +0900 (JST)
Subject: [ruby-changes:51485] normal:r63695 (trunk): gc.c (gc_verify_heap_pages): fix no-op on heap_eden->pages
normal 2018-06-19 16:12:43 +0900 (Tue, 19 Jun 2018) New Revision: 63695 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63695 Log: gc.c (gc_verify_heap_pages): fix no-op on heap_eden->pages Shouldn't affect production use, but good to fix regardless :> Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 63694) +++ gc.c (revision 63695) @@ -5290,8 +5290,8 @@ static int https://github.com/ruby/ruby/blob/trunk/gc.c#L5290 gc_verify_heap_pages(rb_objspace_t *objspace) { int remembered_old_objects = 0; - remembered_old_objects = gc_verify_heap_pages_(objspace, &heap_eden->pages); - remembered_old_objects = gc_verify_heap_pages_(objspace, &heap_tomb->pages); + remembered_old_objects += gc_verify_heap_pages_(objspace, &heap_eden->pages); + remembered_old_objects += gc_verify_heap_pages_(objspace, &heap_tomb->pages); return remembered_old_objects; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/