summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2021-11-05 09:51:53 -0400
committerPeter Zhu <peter@peterzhu.ca>2021-11-08 14:05:54 -0500
commitaeae6e2842e1702dfb89b8ae69b48c4f5f64c662 (patch)
tree33a7c7e23bf109123a77c7eb644e66e9bd44d75d /thread_pthread.c
parentaa5bccfc65cf47a10d72cefa4bc2ee097f135b4c (diff)
downloadruby-aeae6e2842e1702dfb89b8ae69b48c4f5f64c662.tar.gz
[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.
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 102b15d156..6f0cc3d54c 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1684,7 +1684,7 @@ native_set_thread_name(rb_thread_t *th)
name = p + 1;
n = snprintf(buf, sizeof(buf), "%s:%d", name, NUM2INT(RARRAY_AREF(loc, 1)));
- rb_gc_force_recycle(loc); /* acts as a GC guard, too */
+ RB_GC_GUARD(loc);
len = (size_t)n;
if (len >= sizeof(buf)) {