Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YJIT: move --yjit-stats at_exit call into Ruby #5022

Merged
merged 3 commits into from
Oct 27, 2021
Merged

Conversation

XrXr
Copy link
Member

@XrXr XrXr commented Oct 25, 2021

This change fixes -v --yjit-stats. Previously in this situation,
YJIT._print_stats wasn't defined as yjit.rb is not evaluated when there
is only "-v" and no Ruby code to run.

@XrXr XrXr force-pushed the at-exit-in-ruby branch 2 times, most recently from c8ecaf7 to 319656d Compare October 25, 2021 17:47
On -DRUBY_DEVEL builds, `ruby -v` can print extra info about the last
commit on a separate line, breaking some tests that expect a single
line. Assert only the first line instead.
This change fixes `-v --yjit-stats`. Previously in this situation,
YJIT._print_stats wasn't defined as yjit.rb is not evaluated when there
is only "-v" and no Ruby code to run.
@XrXr XrXr merged commit fdbae38 into ruby:master Oct 27, 2021
@XrXr XrXr deleted the at-exit-in-ruby branch October 27, 2021 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants