| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR removes JRuby’s implementation of the deprecated ObjectSpace._id2ref API to align with Ruby 4.1 behavior (per ruby-lang bug #22135), and simplifies the internal object-id bookkeeping that existed to support _id2ref.
Changes:
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| core/src/test/java/org/jruby/test/TestObjectSpace.java | Removes the Java-level identity/id2ref test that depended on _id2ref-style behavior. |
| core/src/main/java/org/jruby/runtime/ObjectSpace.java | Simplifies id registration and id generation by removing object→id caching. |
| core/src/main/java/org/jruby/runtime/ivars/VariableTableManager.java | Switches object id initialization to always use ObjectSpace.calculateObjectId(). |
| core/src/main/java/org/jruby/RubyObjectSpace.java | Removes the Ruby-visible _id2ref entry point. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
Officially removed for Ruby 4.1. See https://bugs.ruby-lang.org/issues/22135
|
Remaining failures are due to Ruby 4.1 functionality that has not yet been implemented. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Officially removed for Ruby 4.1.
See https://bugs.ruby-lang.org/issues/22135