From: "matz (Yukihiro Matsumoto) via ruby-core" Date: 2026-07-10T00:58:40+00:00 Subject: [ruby-core:126024] [Ruby Feature#22135] Remove obsolete `ObjectSpace#_id2ref` Issue #22135 has been updated by matz (Yukihiro Matsumoto). Accepted. `_id2ref` has been deprecated and it is fundamentally incompatible with the direction of the runtime (GC and Ractor). Reviving arbitrary objects from integer IDs was never a sound API. Let us remove it. Matz. ---------------------------------------- Feature #22135: Remove obsolete `ObjectSpace#_id2ref` https://bugs.ruby-lang.org/issues/22135#change-118003 * Author: nobu (Nobuyoshi Nakada) * Status: Closed ---------------------------------------- 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/