diff options
author | Peter Zhu <[email protected]> | 2023-08-28 16:33:28 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2023-08-28 18:01:29 -0400 |
commit | 5485680244bc40a9dba52e468fc5705973f2f5bd (patch) | |
tree | 77a618ae819a50db0da441bcb376843a3200aaae /gc.c | |
parent | 85aa28e8a65b0b0691bf18f4af13adf080638035 (diff) |
Expose RVALUE_OLD_AGE in GC::INTERNAL_CONSTANTS
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8310
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -13907,6 +13907,7 @@ Init_GC(void) 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))); + rb_hash_aset(gc_constants, ID2SYM(rb_intern("RVALUE_OLD_AGE")), LONG2FIX(RVALUE_OLD_AGE)); if (RB_BUG_INSTEAD_OF_RB_MEMERROR+0) { rb_hash_aset(gc_constants, ID2SYM(rb_intern("RB_BUG_INSTEAD_OF_RB_MEMERROR")), Qtrue); } |