diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2019-08-01 14:41:21 -0400 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-29 20:40:52 +0900 |
commit | a4a19b114ba94b8f28d5a91aee5d595a516006d5 (patch) | |
tree | 9d4bda06b2877673e598a850b19f5ec5acafefc6 /lib | |
parent | e4be2fda3dbbfdb1f2ace697c96cf6bdd7dfef21 (diff) | |
download | ruby-a4a19b114ba94b8f28d5a91aee5d595a516006d5.tar.gz |
Allow non-finalizable objects in ObjectSpace::WeakMap
[feature #16035]
This goes one step farther than what nobu did in [feature #13498]
With this patch, special objects such as static symbols, integers, etc can be used as either key or values inside WeakMap. They simply don't have a finalizer defined on them.
This is useful if you need to deduplicate value objects
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions