Issue #21961 has been updated by k0kubun (Takashi Kokubun). Backport changed from 3.2: WONTFIX, 3.3: DONE, 3.4: REQUIRED, 4.0: REQUIRED to 3.2: WONTFIX, 3.3: DONE, 3.4: REQUIRED, 4.0: DONE ruby_4_0 commit:4fa4d71d751a4efeb5616ca7227fa57df0e718b0 merged revision(s) commit:54c4694994cc3bcfea9058b22ba3e68af6aaf740. ---------------------------------------- Bug #21961: Marshal.load freeze option fail to freeze linked strings https://bugs.ruby-lang.org/issues/21961#change-116919 * Author: byroot (Jean Boussier) * Status: Closed * Backport: 3.2: WONTFIX, 3.3: DONE, 3.4: REQUIRED, 4.0: DONE ---------------------------------------- ```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/