diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-12-22 12:59:47 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-12-22 12:59:47 +0900 |
commit | 7204b81bcb13f84ca3cc34384d205565fd5ad381 (patch) | |
tree | 7113ffda0be6882e78dd064587966ef323035856 | |
parent | 2e1cdf36ba950fef3f7d6fc215835ce3027699f4 (diff) | |
download | ruby-7204b81bcb13f84ca3cc34384d205565fd5ad381.tar.gz |
fix to use rb_ractor_id()
Catch up recent changes on USE_RUBY_DEBUG_LOG=1.
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -980,7 +980,7 @@ thread_create_core(VALUE thval, struct thread_create_params *params) 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); |