Fix `memsize_of` for fiber objects;
@@ -345,8 +345,8 @@ os_memsize_of_object(mrb_state* mrb, mrb_value obj, mrb_value recurse, mrb_int*
sizeof(struct mrb_context) +
sizeof(struct RProc *) * f->cxt->esize +
sizeof(uint16_t *) * f->cxt->rsize +
- stack_size +
- ci_size;
+ sizeof(mrb_value) * stack_size +
+ sizeof(mrb_callinfo) * ci_size;
break;
}
case MRB_TT_ISTRUCT:
