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: --yjit-dump-disasm=dir: Hold descriptor for dump file #11004

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

XrXr
Copy link
Member

@XrXr XrXr commented Jun 14, 2024

This mainly aims to make --yjit-dump-disasm=<relative_path> more
usable. Previously, it crashed if the program did chdir(2), since it
opened the dump file every time when appending.

Tested with:

./miniruby --yjit-dump-disasm=. --yjit-call-threshold=1 -e 'Dir.chdir("/") {}'

And the lobsters benchmark.

@matzbot matzbot requested a review from a team June 14, 2024 20:50
This mainly aims to make `--yjit-dump-disasm=<relative_path>` more
usable. Previously, it crashed if the program did chdir(2), since it
opened the dump file every time when appending.

Tested with:

    ./miniruby --yjit-dump-disasm=. --yjit-call-threshold=1 -e 'Dir.chdir("/") {}'

And the `lobsters` benchmark.
Copy link
Contributor

@rwstauner rwstauner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed this used to (try to) write two files and now writes all the data into one.

Copy link
Member

@k0kubun k0kubun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 👍

@XrXr XrXr merged commit 657c8db into ruby:master Jun 17, 2024
106 checks passed
@XrXr XrXr deleted the yjit-disasm-abs-path branch June 17, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants