From caaa36b4e6d0d59f0aa21049c063b140aa5aae4f Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Fri, 25 Sep 2020 18:31:04 +0900 Subject: prohibi method call by defined_method in other racotrs We can not call a non-isolated Proc in multiple ractors. --- method.h | 1 + 1 file changed, 1 insertion(+) (limited to 'method.h') diff --git a/method.h b/method.h index dae0a4f43f..5b6fe2d800 100644 --- a/method.h +++ b/method.h @@ -159,6 +159,7 @@ typedef struct rb_method_refined_struct { typedef struct rb_method_bmethod_struct { VALUE proc; /* should be marked */ struct rb_hook_list_struct *hooks; + VALUE defined_ractor; } rb_method_bmethod_t; enum method_optimized_type { -- cgit v1.2.3