From 02d9524cdaca1754718bf1d591408d377e6b383a Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Sun, 20 Dec 2020 01:44:41 +0900 Subject: separate rb_ractor_pub from rb_ractor_t separate some fields from rb_ractor_t to rb_ractor_pub and put it at the beggining of rb_ractor_t and declare it in vm_core.h so vm_core.h can access rb_ractor_pub fields. Now rb_ec_ractor_hooks() is a complete inline function and no MJIT related issue. --- ractor.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ractor.rb') diff --git a/ractor.rb b/ractor.rb index 12643e6e16..772a0eb013 100644 --- a/ractor.rb +++ b/ractor.rb @@ -251,7 +251,7 @@ class Ractor # Ractor.current #=> # def self.current __builtin_cexpr! %q{ - rb_ec_ractor_ptr(ec)->self + rb_ractor_self(rb_ec_ractor_ptr(ec)); } end @@ -650,10 +650,10 @@ class Ractor } end - def inspect # :nodoc: - loc = __builtin_cexpr! %q{RACTOR_PTR(self)->loc} - name = __builtin_cexpr! %q{RACTOR_PTR(self)->name} - id = __builtin_cexpr! %q{INT2FIX(RACTOR_PTR(self)->id)} + def inspect + loc = __builtin_cexpr! %q{ RACTOR_PTR(self)->loc } + name = __builtin_cexpr! %q{ RACTOR_PTR(self)->name } + id = __builtin_cexpr! %q{ INT2FIX(rb_ractor_id(RACTOR_PTR(self))) } status = __builtin_cexpr! %q{ rb_str_new2(ractor_status_str(RACTOR_PTR(self)->status_)) } -- cgit v1.2.1