mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add HEAP_PAGE_SIZE to internal constants
This commit is contained in:
parent
490b57783d
commit
87d21ee996
1 changed files with 1 additions and 0 deletions
1
gc.c
1
gc.c
|
@ -12604,6 +12604,7 @@ Init_GC(void)
|
||||||
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_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_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_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);
|
OBJ_FREEZE(gc_constants);
|
||||||
/* internal constants */
|
/* internal constants */
|
||||||
rb_define_const(rb_mGC, "INTERNAL_CONSTANTS", gc_constants);
|
rb_define_const(rb_mGC, "INTERNAL_CONSTANTS", gc_constants);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue