backtrace.c: use mrb_irep references instead of struct RProc

To reduce GC burden (no mark needed). We use `mrb_irep_incref()` and
`mrb_irep_decref()` instead to track irep memory usage; ref #6161
This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-02-04 16:46:09 +09:00
parent 4dfadb4f9f
commit 2f63b49542
3 changed files with 15 additions and 18 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ struct RBacktrace {
struct mrb_backtrace_location {
mrb_sym method_id;
int32_t idx;
const struct RProc *proc;
const mrb_irep *irep;
};
/* gc */