diff options
author | Koichi Sasada <[email protected]> | 2020-09-25 18:31:04 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2020-09-25 20:37:38 +0900 |
commit | caaa36b4e6d0d59f0aa21049c063b140aa5aae4f (patch) | |
tree | 51e95c8e7be7a1a1793ab02a4c9f3a2cf2e1867f /method.h | |
parent | 890bc2cdde4097390f3b71dfeaa36dd92ee0afe2 (diff) |
prohibi method call by defined_method in other racotrs
We can not call a non-isolated Proc in multiple ractors.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3584
Diffstat (limited to 'method.h')
-rw-r--r-- | method.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 { |