diff options
author | Koichi Sasada <ko1@atdot.net> | 2021-12-21 14:06:02 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2021-12-21 15:21:30 +0900 |
commit | ad450c9fe51c51626dd07f6e766f47d839cae3ba (patch) | |
tree | f61545a929b263b3df661cd02b8affca12f12637 /autogen.sh | |
parent | 3c7e95966d6b9efd201170eb59b0e4a3c4eb6134 (diff) | |
download | ruby-ad450c9fe51c51626dd07f6e766f47d839cae3ba.tar.gz |
make `overloaded_cme_table` truly weak key map
`overloaded_cme_table` keeps cme -> monly_cme pairs to manage
corresponding `monly_cme` for `cme`. The lifetime of the `monly_cme`
should be longer than `monly_cme`, but the previous patch losts the
reference to the living `monly_cme`.
Now `overloaded_cme_table` values are always root (keys are only weak
reference), it means `monly_cme` does not freed until corresponding
`cme` is invalidated.
To make managing easy, move `overloaded_cme_table` to `rb_vm_t`.
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions