prohibi method call by defined_method in other racotrs

We can not call a non-isolated Proc in multiple ractors.
This commit is contained in:
Koichi Sasada 2020-09-25 18:31:04 +09:00
parent 890bc2cdde
commit caaa36b4e6
Notes: git 2020-09-25 20:38:03 +09:00
4 changed files with 20 additions and 1 deletions

View file

@ -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 {