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

For YJIT stats, set avg_len_in_yjit to 0 if denominator would be 0 #7793

Merged
merged 1 commit into from May 9, 2023

Conversation

noahgibbs
Copy link
Contributor

@noahgibbs noahgibbs commented May 9, 2023

This field is only compiled for yjit-stats builds.

Currently the result is NaN if the total exit is 0, which is inconvenient. This should only occur if YJIT has not yet executed any compiled methods.

@matzbot matzbot requested a review from a team May 9, 2023 13:26
@noahgibbs
Copy link
Contributor Author

Nope, never mind, found another bug

@noahgibbs noahgibbs closed this May 9, 2023
@noahgibbs
Copy link
Contributor Author

And it was in my config. Reopening.

@noahgibbs noahgibbs reopened this May 9, 2023
@maximecb maximecb merged commit e1c84e8 into ruby:master May 9, 2023
100 checks passed
@maximecb maximecb deleted the avg_len_in_yjit_stats_fix branch May 9, 2023 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants