From 690fd7633cf2c8b655e0522d1ccf78924b6f74d5 Mon Sep 17 00:00:00 2001 From: normal Date: Thu, 13 Dec 2018 08:44:15 +0000 Subject: [PATCH] thread_pthread.c (gvl_release_common): constify return value No need for it to be mutable git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thread_pthread.c b/thread_pthread.c index c87e952750..04e938e647 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -270,7 +270,7 @@ gvl_acquire(rb_vm_t *vm, rb_thread_t *th) rb_native_mutex_unlock(&vm->gvl.lock); } -static native_thread_data_t * +static const native_thread_data_t * gvl_release_common(rb_vm_t *vm) { native_thread_data_t *next; @@ -292,7 +292,7 @@ gvl_release(rb_vm_t *vm) static void gvl_yield(rb_vm_t *vm, rb_thread_t *th) { - native_thread_data_t *next; + const native_thread_data_t *next; /* * Perhaps other threads are stuck in blocking region w/o GVL, too,