diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2023-03-01 15:09:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-01 15:09:25 -0500 |
commit | 27c2572dbdf171ec0b4a107b573feff38399c018 (patch) | |
tree | 32f2fa8b5e708ccb282a9ce1a611c02facf19415 /yjit/src/stats.rs | |
parent | 559dfea7fbaff6793098af1e314878a401d3985c (diff) | |
download | ruby-27c2572dbdf171ec0b4a107b573feff38399c018.tar.gz |
YJIT: reject large stacks so we can use i8/u8 stack_size and stack_offset (#7412)
* Reject large stacks so we can use i8/u8 stack_size and stack_offset
* Add rejection test for iseq too long as well
Diffstat (limited to 'yjit/src/stats.rs')
-rw-r--r-- | yjit/src/stats.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs index 5d32f613c8..2587042d79 100644 --- a/yjit/src/stats.rs +++ b/yjit/src/stats.rs @@ -348,6 +348,9 @@ make_counters! { num_send_polymorphic, num_send_x86_rel32, num_send_x86_reg, + + iseq_stack_too_large, + iseq_too_long, } //=========================================================================== |