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

use correct svar #7225

Merged
merged 2 commits into from Feb 2, 2023
Merged

use correct svar #7225

merged 2 commits into from Feb 2, 2023

Commits on Feb 1, 2023

  1. use correct svar

    Without this patch, svar location is used "nearest Ruby frame".
    It is almost correct but it doesn't correct when the `each` method
    is written in Ruby.
    
    ```ruby
    class C
      include Enumerable
      def each
        %w(bar baz).each{|e| yield e}
      end
    end
    
    C.new.grep(/(b.)/){|e| p [$1, e]}
    ```
    
    This patch fix this issue by traversing ifunc's cfp.
    
    Note that if cfp doesn't specify this Thread's cfp stack, reserved
    svar location (`ec->root_svar`) is used.
    ko1 committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    59d2031 View commit details
    Browse the repository at this point in the history
  2. make yjit-bindgen

    k0kubun committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    7a81a4d View commit details
    Browse the repository at this point in the history