All values use page slot size in calculation

This commit is contained in:
Rory OConnell
2020-07-13 15:56:27 -07:00
parent 37d6628688
commit 41e3220539
3 changed files with 19 additions and 5 deletions
+7
View File
@@ -1599,6 +1599,13 @@ mrb_objspace_each_objects(mrb_state *mrb, mrb_each_object_callback *callback, vo
}
}
const mrb_int
mrb_objspace_page_slot_size()
{
const mrb_int i = sizeof(RVALUE);
return i;
}
#ifdef GC_TEST
#ifdef GC_DEBUG
static mrb_value gc_test(mrb_state *, mrb_value);