ruby-changes:64445
From: Koichi <ko1@a...>
Date: Tue, 22 Dec 2020 13:01:33 +0900 (JST)
Subject: [ruby-changes:64445] 7204b81bcb (master): fix to use rb_ractor_id()
https://git.ruby-lang.org/ruby.git/commit/?id=7204b81bcb From 7204b81bcb13f84ca3cc34384d205565fd5ad381 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Tue, 22 Dec 2020 12:59:47 +0900 Subject: fix to use rb_ractor_id() Catch up recent changes on USE_RUBY_DEBUG_LOG=1. diff --git a/thread.c b/thread.c index e60d71f..a7cd6e4 100644 --- a/thread.c +++ b/thread.c @@ -980,7 +980,7 @@ thread_create_core(VALUE thval, struct thread_create_params *params) https://github.com/ruby/ruby/blob/trunk/thread.c#L980 rb_native_mutex_initialize(&th->interrupt_lock); - RUBY_DEBUG_LOG("r:%u th:%p", th->ractor->id, th); + RUBY_DEBUG_LOG("r:%u th:%p", rb_ractor_id(th->ractor), th); rb_ractor_living_threads_insert(th->ractor, th); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/