diff options
| author | Jean Boussier <byroot@ruby-lang.org> | 2023-03-16 08:52:22 +0000 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2023-03-17 17:50:08 +0000 |
| commit | 3592b24cdc07ed89eecb39161f21fe721a89a5de (patch) | |
| tree | c0a5145f22896189dd873922e5dfc7e6ce637f85 /include/ruby | |
| parent | ccd2dbc4c15ffb5bde0141a98ec02603c1597243 (diff) | |
ObjectSpace::WeakMap: clean inverse reference when an entry is re-assigned
[Bug #19531]
```ruby
wmap[1] = "A"
wmap[1] = "B"
```
In the example above, we need to remove the `"A" => 1` inverse reference
so that when `"A"` is GCed the `1` key isn't deleted.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7540
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions
