ruby-changes:69868
From: Jemma <ko1@a...>
Date: Tue, 23 Nov 2021 02:02:57 +0900 (JST)
Subject: [ruby-changes:69868] c4f45674a4 (master): Removes unused HEAP_PAGE_BITMAP_PLANES constant from gc.c
https://git.ruby-lang.org/ruby.git/commit/?id=c4f45674a4 From c4f45674a431560105d1b92c7b64d8b6354d9c6a Mon Sep 17 00:00:00 2001 From: Jemma Issroff <jemmaissroff@g...> Date: Thu, 4 Feb 2021 16:16:59 -0500 Subject: Removes unused HEAP_PAGE_BITMAP_PLANES constant from gc.c --- gc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gc.c b/gc.c index b36688979e8..b2c5ca0a802 100644 --- a/gc.c +++ b/gc.c @@ -867,7 +867,6 @@ enum { https://github.com/ruby/ruby/blob/trunk/gc.c#L867 HEAP_PAGE_OBJ_LIMIT = (unsigned int)((HEAP_PAGE_SIZE - sizeof(struct heap_page_header))/sizeof(struct RVALUE)), HEAP_PAGE_BITMAP_LIMIT = CEILDIV(CEILDIV(HEAP_PAGE_SIZE, sizeof(struct RVALUE)), BITS_BITLENGTH), HEAP_PAGE_BITMAP_SIZE = (BITS_SIZE * HEAP_PAGE_BITMAP_LIMIT), - HEAP_PAGE_BITMAP_PLANES = 4 /* RGENGC: mark, unprotected, uncollectible, marking */ }; #define HEAP_PAGE_ALIGN (1 << HEAP_PAGE_ALIGN_LOG) #define HEAP_PAGE_SIZE HEAP_PAGE_ALIGN @@ -13588,7 +13587,6 @@ Init_GC(void) https://github.com/ruby/ruby/blob/trunk/gc.c#L13587 rb_hash_aset(gc_constants, ID2SYM(rb_intern("RVALUE_SIZE")), SIZET2NUM(sizeof(RVALUE))); rb_hash_aset(gc_constants, ID2SYM(rb_intern("HEAP_PAGE_OBJ_LIMIT")), SIZET2NUM(HEAP_PAGE_OBJ_LIMIT)); rb_hash_aset(gc_constants, ID2SYM(rb_intern("HEAP_PAGE_BITMAP_SIZE")), SIZET2NUM(HEAP_PAGE_BITMAP_SIZE)); - rb_hash_aset(gc_constants, ID2SYM(rb_intern("HEAP_PAGE_BITMAP_PLANES")), SIZET2NUM(HEAP_PAGE_BITMAP_PLANES)); rb_hash_aset(gc_constants, ID2SYM(rb_intern("HEAP_PAGE_SIZE")), SIZET2NUM(HEAP_PAGE_SIZE)); rb_hash_aset(gc_constants, ID2SYM(rb_intern("SIZE_POOL_COUNT")), LONG2FIX(SIZE_POOL_COUNT)); rb_hash_aset(gc_constants, ID2SYM(rb_intern("RVARGC_MAX_ALLOCATE_SIZE")), LONG2FIX(size_pool_slot_size(SIZE_POOL_COUNT - 1))); -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/