Skip to content

Introduce support for ractor_belonging.#76

Open
eightbitraptor wants to merge 3 commits intomainfrom
mvh-ruby-debug-ractor
Open

Introduce support for ractor_belonging.#76
eightbitraptor wants to merge 3 commits intomainfrom
mvh-ruby-debug-ractor

Conversation

@eightbitraptor
Copy link
Copy Markdown
Member

This is a debug mode in Ruby where an extra word is used after each object to store the address of the Ractor that owns the object, used for debug purposes only.

While we're working on Ractors, we also need to be able to test with MMTk enabled, so we should introduce support for this to the MMTk binding as well.

As implemented we'll default the binding options to have everything disabled and hardcoded to 0, as was always the case, but if RACTOR_CHECK_MODE is enabled, we'll build and pass a valid RubyBinding object to MMTk.

This is a debug mode in Ruby where an extra word is used after each
object to store the address of the Ractor that owns the object, used for
debug purposes only.

While we're working on Ractors, we also need to be able to test with
MMTk enabled, so we should introduce support for this to the MMTk
binding as well.

As implemented we'll default the binding options to have everything
disabled and hardcoded to 0, as was always the case, but if
RACTOR_CHECK_MODE is enabled, we'll build and pass a valid RubyBinding
object to MMTk.
the only caller of this unconditionally constructs a binding options
object now, So actually this is dead code
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

Successfully merging this pull request may close these issues.

1 participant