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

[interpreter] ruby - removal of symbols to the internal state/stack #202

Open
florianl opened this issue Oct 24, 2024 · 0 comments
Open

Comments

@florianl
Copy link
Contributor

ruby/ruby#7459 removed the access to symbols, that provided access to investigate the Ruby internal stack and enabled walking this interpeter stack.

// Before Ruby 2.5 the symbol ruby_current_thread was used for the current execution
// context but got replaced in [0] with ruby_current_execution_context_ptr.
// With [1] the Ruby internal execution model changed and the symbol
// ruby_current_execution_context_ptr was removed. Therefore we need to lookup different
// symbols depending on the version.
// [0] https://github.com/ruby/ruby/commit/837fd5e494731d7d44786f29e7d6e8c27029806f
// [1] https://github.com/ruby/ruby/commit/79df14c04b452411b9d17e26a398e491bca1a811

Identify a new way to gain access to the Ruby internal state and stack to support newer versions of Ruby.

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

No branches or pull requests

1 participant