Fix memsize_of for fiber objects; #5032

This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-07-17 10:52:04 +09:00
parent 7f66cf7d66
commit c6b8b58e0e
@@ -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: