aboutsummaryrefslogtreecommitdiffstats
path: root/method.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-09-25 18:31:04 +0900
committerKoichi Sasada <ko1@atdot.net>2020-09-25 20:37:38 +0900
commitcaaa36b4e6d0d59f0aa21049c063b140aa5aae4f (patch)
tree51e95c8e7be7a1a1793ab02a4c9f3a2cf2e1867f /method.h
parent890bc2cdde4097390f3b71dfeaa36dd92ee0afe2 (diff)
downloadruby-caaa36b4e6d0d59f0aa21049c063b140aa5aae4f.tar.gz
prohibi method call by defined_method in other racotrs
We can not call a non-isolated Proc in multiple ractors.
Diffstat (limited to 'method.h')
-rw-r--r--method.h1
1 files changed, 1 insertions, 0 deletions
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 {