mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
b67cea4442
When irep->refcnt reaches UINT16_MAX, mrb_irep_incref() raises exception but the function pack_backtrace_i() is called from mrb_exc_raise() thus causes the infinite loop problem. So this is a hack-ish workaround by making irep reference to NULL if refcnt reaches the maximum count. Probably we will address this issue again to make it better.