summaryrefslogtreecommitdiff
path: root/zjit.rb
diff options
context:
space:
mode:
authorAiden Fox Ivey <aiden.foxivey@shopify.com>2025-09-30 16:51:56 -0400
committerGitHub <noreply@github.com>2025-09-30 20:51:56 +0000
commitdf2d1d5ad386c51ad9750282917ecacf2b343598 (patch)
treeccf3ae1ffb460d6935e6269ef2446537f8189c73 /zjit.rb
parente90729aa6c34d00743e2de9095293d3189587333 (diff)
ZJIT: Decouple stats and side exit tracing (#14688)
Diffstat (limited to 'zjit.rb')
-rw-r--r--zjit.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/zjit.rb b/zjit.rb
index 155f16a713..2ff4cf2a5b 100644
--- a/zjit.rb
+++ b/zjit.rb
@@ -9,10 +9,10 @@
module RubyVM::ZJIT
# Avoid calling a Ruby method here to avoid interfering with compilation tests
if Primitive.rb_zjit_print_stats_p
- at_exit {
- print_stats
- dump_locations
- }
+ at_exit { print_stats }
+ end
+ if Primitive.rb_zjit_trace_exit_locations_enabled_p
+ at_exit { dump_locations }
end
end