mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
YJIT: Invalidate redefined methods only through cme (#6734)
Co-authored-by: Alan Wu <alansi.xingwu@shopify.com> Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
This commit is contained in:
parent
9751b54971
commit
1125274c4e
Notes:
git
2022-11-15 20:58:13 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
5 changed files with 12 additions and 80 deletions
2
yjit.h
2
yjit.h
|
@ -28,7 +28,6 @@
|
|||
bool rb_yjit_enabled_p(void);
|
||||
unsigned rb_yjit_call_threshold(void);
|
||||
void rb_yjit_invalidate_all_method_lookup_assumptions(void);
|
||||
void rb_yjit_method_lookup_change(VALUE klass, ID mid);
|
||||
void rb_yjit_cme_invalidate(rb_callable_method_entry_t *cme);
|
||||
void rb_yjit_collect_vm_usage_insn(int insn);
|
||||
void rb_yjit_collect_binding_alloc(void);
|
||||
|
@ -51,7 +50,6 @@ void rb_yjit_tracing_invalidate_all(void);
|
|||
static inline bool rb_yjit_enabled_p(void) { return false; }
|
||||
static inline unsigned rb_yjit_call_threshold(void) { return UINT_MAX; }
|
||||
static inline void rb_yjit_invalidate_all_method_lookup_assumptions(void) {}
|
||||
static inline void rb_yjit_method_lookup_change(VALUE klass, ID mid) {}
|
||||
static inline void rb_yjit_cme_invalidate(rb_callable_method_entry_t *cme) {}
|
||||
static inline void rb_yjit_collect_vm_usage_insn(int insn) {}
|
||||
static inline void rb_yjit_collect_binding_alloc(void) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue