[Feature #18290] Remove all usages of rb_gc_force_recycle

This commit removes usages of rb_gc_force_recycle since it is a burden
to maintain and makes changes to the GC difficult.
This commit is contained in:
Peter Zhu 2021-11-05 09:51:53 -04:00
parent aa5bccfc65
commit aeae6e2842
Notes: git 2021-11-09 04:06:17 +09:00
11 changed files with 12 additions and 28 deletions

View file

@ -3459,7 +3459,6 @@ rb_thread_to_s(VALUE thread)
if ((loc = threadptr_invoke_proc_location(target_th)) != Qnil) {
rb_str_catf(str, " %"PRIsVALUE":%"PRIsVALUE,
RARRAY_AREF(loc, 0), RARRAY_AREF(loc, 1));
rb_gc_force_recycle(loc);
}
rb_str_catf(str, " %s>", status);