aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2019-08-01 14:41:21 -0400
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-29 20:40:52 +0900
commita4a19b114ba94b8f28d5a91aee5d595a516006d5 (patch)
tree9d4bda06b2877673e598a850b19f5ec5acafefc6 /lib
parente4be2fda3dbbfdb1f2ace697c96cf6bdd7dfef21 (diff)
downloadruby-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