Skip to content

Commit b7bf8c2

Browse files
committed
Add RVALUE_OLD_AGE to GC::INTERNAL_CONSTANTS for MMTk
1 parent f2833e3 commit b7bf8c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gc/mmtk/mmtk.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,8 @@ rb_gc_impl_init(void)
550550
rb_hash_aset(gc_constants, ID2SYM(rb_intern("RVARGC_MAX_ALLOCATE_SIZE")), LONG2FIX(MMTK_MAX_OBJ_SIZE));
551551
// Pretend we have 5 size pools
552552
rb_hash_aset(gc_constants, ID2SYM(rb_intern("SIZE_POOL_COUNT")), LONG2FIX(5));
553+
// TODO: correctly set RVALUE_OLD_AGE when we have generational GC support
554+
rb_hash_aset(gc_constants, ID2SYM(rb_intern("RVALUE_OLD_AGE")), INT2FIX(0));
553555
OBJ_FREEZE(gc_constants);
554556
rb_define_const(rb_mGC, "INTERNAL_CONSTANTS", gc_constants);
555557

0 commit comments

Comments
 (0)