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: Add jit_prepare_call_with_gc function #9775

Merged
merged 4 commits into from Jan 31, 2024

Conversation

k0kubun
Copy link
Member

@k0kubun k0kubun commented Jan 31, 2024

This PR introduces jit_prepare_for_gc function to do jit_prepare_routine_call without asm.clear_local_types().

When a C call may allocate but not call arbitrary methods, we should be able to skip asm.clear_local_types(). I applied this change to some instructions where I think it makes sense.

@matzbot matzbot requested a review from a team January 31, 2024 02:00
Copy link
Member

@XrXr XrXr left a comment

Choose a reason for hiding this comment

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

I think we can also change the one for leaf builtins.

yjit/src/codegen.rs Outdated Show resolved Hide resolved
yjit/src/codegen.rs Outdated Show resolved Hide resolved
@k0kubun
Copy link
Member Author

k0kubun commented Jan 31, 2024

I think we can also change the one for leaf builtins.

Good call 👍 402884d

@maximecb maximecb enabled auto-merge (squash) January 31, 2024 17:22
@k0kubun k0kubun changed the title YJIT: Add jit_prepare_for_gc function YJIT: Add jit_prepare_call_with_gc function Jan 31, 2024
@maximecb maximecb merged commit cc9bbbd into ruby:master Jan 31, 2024
97 checks passed
@k0kubun k0kubun deleted the yjit-prepare-for-gc branch February 7, 2024 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants