Fix `memsize_of` for fiber objects; #5032

parent 7f66cf7d
...@@ -345,8 +345,8 @@ os_memsize_of_object(mrb_state* mrb, mrb_value obj, mrb_value recurse, mrb_int* ...@@ -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 mrb_context) +
sizeof(struct RProc *) * f->cxt->esize + sizeof(struct RProc *) * f->cxt->esize +
sizeof(uint16_t *) * f->cxt->rsize + sizeof(uint16_t *) * f->cxt->rsize +
stack_size + sizeof(mrb_value) * stack_size +
ci_size; sizeof(mrb_callinfo) * ci_size;
break; break;
} }
case MRB_TT_ISTRUCT: case MRB_TT_ISTRUCT:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment