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

[PRISM] Make file path and script name distinct #9655

Merged
merged 3 commits into from
Jan 22, 2024

Conversation

eightbitraptor
Copy link
Contributor

This affects Tracepoint paths and fixes ruby/prism#2229

When loading Ruby from a file, or parsing using
RubyVM::InstructionSequence.
This causes the Iseq file names to be wrong, which is affecting
Tracepoint events in certain cases.

because we're taking a pointer to the string and using it in
`pm_string_mapped_pointer` we also need to `RB_GC_GUARD` the relevant
Ruby object to ensure it's not moved or swept before the parser has been
free'd.
@tenderlove tenderlove merged commit d8af85a into ruby:master Jan 22, 2024
97 checks passed
@eightbitraptor eightbitraptor deleted the mvh-prism-c-call-tracepoint branch January 23, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants