YJIT: add counter for untracked gbpp exit reason (#8052)

This commit is contained in:
Maxime Chevalier-Boisvert 2023-07-11 10:17:48 -04:00 committed by GitHub
parent 1b01140d8a
commit e770006486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2023-07-11 14:18:08 +00:00
Merged-By: maximecb <maximecb@ruby-lang.org>
2 changed files with 2 additions and 0 deletions

View File

@ -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;
}

View File

@ -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,