diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index 7d5d166706..cda9c5f680 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -7649,6 +7649,7 @@ fn gen_getblockparamproxy( // When a block handler is present, it should always be a GC-guarded // pointer (VM_BH_ISEQ_BLOCK_P) if comptime_handler.as_u64() != 0 && comptime_handler.as_u64() & 0x3 != 0x1 { + incr_counter!(gbpp_not_gc_guarded); return None; } diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs index 299db2c696..7f1a4e3d9f 100644 --- a/yjit/src/stats.rs +++ b/yjit/src/stats.rs @@ -354,6 +354,7 @@ make_counters! { expandarray_rhs_too_small, gbp_wb_required, + gbpp_not_gc_guarded, gbpp_block_param_modified, gbpp_block_handler_not_none, gbpp_block_handler_not_iseq,