mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Make RClass.cc_table
a managed object
For now this doesn't change anything, but now that the table is managed by GC, it opens the door to use RCU when in multi-ractor mode, hence allow unsynchornized reads.
This commit is contained in:
parent
fc5e1541e4
commit
f2a7e48dea
10 changed files with 191 additions and 159 deletions
2
method.h
2
method.h
|
@ -259,6 +259,6 @@ void rb_vm_delete_cc_refinement(const struct rb_callcache *cc);
|
|||
|
||||
void rb_clear_method_cache(VALUE klass_or_module, ID mid);
|
||||
void rb_clear_all_refinement_method_cache(void);
|
||||
void rb_invalidate_method_caches(struct rb_id_table *cm_tbl, struct rb_id_table *cc_tbl);
|
||||
void rb_invalidate_method_caches(struct rb_id_table *cm_tbl, VALUE cc_tbl);
|
||||
|
||||
#endif /* RUBY_METHOD_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue