From b2e1ddffa55463f1180af7f9b269a2d89140b131 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Thu, 12 Oct 2023 10:05:34 -0400 Subject: YJIT: port call threshold logic from Rust to C for performance (#8628) * Port call threshold logic from Rust to C for performance * Prefix global/field names with yjit_ * Fix linker error * Fix preprocessor condition for rb_yjit_threshold_hit * Fix third linker issue * Exclude yjit_calls_at_interv from RJIT bindgen --------- Co-authored-by: Takashi Kokubun --- vm_core.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 6f2fca6537..acad6280be 100644 --- a/vm_core.h +++ b/vm_core.h @@ -524,6 +524,8 @@ struct rb_iseq_constant_body { #if USE_YJIT // YJIT stores some data on each iseq. void *yjit_payload; + // Used to estimate how frequently this ISEQ gets called + uint64_t yjit_calls_at_interv; #endif }; -- cgit v1.2.3