summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-12-20 01:44:41 +0900
committerKoichi Sasada <ko1@atdot.net>2020-12-22 00:03:00 +0900
commit02d9524cdaca1754718bf1d591408d377e6b383a (patch)
treea88d9042c69513af9fe6e3a6f1f74505e5955a15 /gc.c
parenta2950369bd8a5866092f6badf59b0811653a6092 (diff)
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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3943
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index a8b0b4f342..e8c9afd5e8 100644
--- a/gc.c
+++ b/gc.c
@@ -12348,7 +12348,7 @@ rb_raw_obj_info(char *buff, const int buff_size, VALUE obj)
else if (rb_ractor_p(obj)) {
rb_ractor_t *r = (void *)DATA_PTR(obj);
if (r) {
- APPENDF((BUFF_ARGS, "r:%d", r->id));
+ APPENDF((BUFF_ARGS, "r:%d", r->pub.id));
}
}
else {