Skip to content

YJIT: Skip dump-disasm if it fails to create a file #8968

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

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

k0kubun
Copy link
Member

@k0kubun k0kubun commented Nov 20, 2023

We sometimes set --yjit-dump-disasm=/buildkite-artifacts in a bash script that is shared everywhere (CI & production) to configure YJIT so that disasm shows up as Artifacts on Buildkite. However, because this directory is specific to some CI workflows and the directory doesn't necessarily exist, it could crash on such workflows.

Panicking the Ruby because it failed to disasm YJIT code seems extreme, so this PR fixes it to only warn that it failed to create a file. It would help us easily add such options on CI without complicating the logic to skip it for some workflows.

@matzbot matzbot requested a review from a team November 20, 2023 22:51
@maximecb maximecb merged commit 95d4a52 into ruby:master Nov 21, 2023
@XrXr XrXr deleted the yjit-skip-disasm branch November 21, 2023 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants