From: "hsbt (Hiroshi SHIBATA) via ruby-core" Date: 2026-03-25T23:34:27+00:00 Subject: [ruby-core:125132] [Ruby Bug#21961] Marshal.load freeze option fail to free linked strings Issue #21961 has been updated by hsbt (Hiroshi SHIBATA). Backport changed from 3.2: WONTFIX, 3.3: REQUIRED, 3.4: REQUIRED, 4.0: REQUIRED to 3.2: WONTFIX, 3.3: DONE, 3.4: REQUIRED, 4.0: REQUIRED ruby_3_3 commit:acfdc0ac885ea4641f2e7d9d966fbb2acca7c883 merged revision(s) commit:54c4694994cc3bcfea9058b22ba3e68af6aaf740. ---------------------------------------- Bug #21961: Marshal.load freeze option fail to free linked strings https://bugs.ruby-lang.org/issues/21961#change-116860 * Author: byroot (Jean Boussier) * Status: Closed * Backport: 3.2: WONTFIX, 3.3: DONE, 3.4: REQUIRED, 4.0: REQUIRED ---------------------------------------- ```ruby str = "test" arr = [str, str] strings = Marshal.load(Marshal.dump(arr), freeze: true) p strings.map(&:frozen?) # => [true, false] ``` Expected: `[true, true]` Patch: https://github.com/ruby/ruby/pull/16500 -- 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/