diff options
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 2 |
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)) { |