From: "jhawthorn (John Hawthorn) via ruby-core" Date: 2026-07-02T20:20:44+00:00 Subject: [ruby-core:125917] [Ruby Feature#22135] Remove obsolete `ObjectSpace#_id2ref` Issue #22135 has been updated by jhawthorn (John Hawthorn). +1 I would love to see this gone, we have to do a fair bit of work in the GC and elsewhere to maintain the id2ref table. ---------------------------------------- Feature #22135: Remove obsolete `ObjectSpace#_id2ref` https://bugs.ruby-lang.org/issues/22135#change-117887 * Author: nobu (Nobuyoshi Nakada) * Status: Open ---------------------------------------- As a result of [Feature #15408], the `ObjectSpace#_id2ref` method has been deprecated and now triggers a warning. However, we recognize that its use had already been discouraged for a long time prior to this, and we believe it is rarely used nowadays. Are there any objections to removing this method in version 4.1? [GH-17577](https://github.com/ruby/ruby/pull/17577) -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/