Skip to content

Commit

Permalink
Add RVALUE_OVERHEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Sep 30, 2024
1 parent 4b85405 commit dda1488
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gc/mmtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ rb_gc_impl_init(void)
{
VALUE gc_constants = rb_hash_new();
rb_hash_aset(gc_constants, ID2SYM(rb_intern("BASE_SLOT_SIZE")), SIZET2NUM(sizeof(VALUE) * 5));
rb_hash_aset(gc_constants, ID2SYM(rb_intern("RVALUE_OVERHEAD")), INT2NUM(0));
// Pretend we have 5 size pools
rb_hash_aset(gc_constants, ID2SYM(rb_intern("SIZE_POOL_COUNT")), LONG2FIX(5));
OBJ_FREEZE(gc_constants);
Expand Down

0 comments on commit dda1488

Please sign in to comment.