Actions
Bug #21961
closedMarshal.load freeze option fail to free linked strings
Bug #21961:
Marshal.load freeze option fail to free linked strings
Description
str = "test"
arr = [str, str]
strings = Marshal.load(Marshal.dump(arr), freeze: true)
p strings.map(&:frozen?) # => [true, false]
Expected: [true, true]
Updated by byroot (Jean Boussier) 1 day ago
- Description updated (diff)
Updated by byroot (Jean Boussier) about 15 hours ago
- Status changed from Open to Closed
Applied in changeset git|54c4694994cc3bcfea9058b22ba3e68af6aaf740.
marshal.c: properly freeze linked strings
[Bug #21961]
Actions