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

ruby-changes:63742

From: Aaron <ko1@a...>
Date: Wed, 25 Nov 2020 06:30:51 +0900 (JST)
Subject: [ruby-changes:63742] 87d21ee996 (master): add HEAP_PAGE_SIZE to internal constants

https://git.ruby-lang.org/ruby.git/commit/?id=87d21ee996

From 87d21ee996869cecdcd2afa25553654af847fe39 Mon Sep 17 00:00:00 2001
From: Aaron Patterson <tenderlove@r...>
Date: Tue, 24 Nov 2020 13:30:12 -0800
Subject: add HEAP_PAGE_SIZE to internal constants


diff --git a/gc.c b/gc.c
index ed98792..17bc9fd 100644
--- a/gc.c
+++ b/gc.c
@@ -12604,6 +12604,7 @@ Init_GC(void) https://github.com/ruby/ruby/blob/trunk/gc.c#L12604
     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));
     OBJ_FREEZE(gc_constants);
     /* internal constants */
     rb_define_const(rb_mGC, "INTERNAL_CONSTANTS", gc_constants);
-- 
cgit v0.10.2


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

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