mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
890bc2cdde
commit
caaa36b4e6
Notes:
git
2020-09-25 20:38:03 +09:00
4 changed files with 20 additions and 1 deletions
1
method.h
1
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue