diff options
| author | Aaron Patterson <tenderlove@ruby-lang.org> | 2019-05-17 17:08:31 +0300 |
|---|---|---|
| committer | Aaron Patterson <tenderlove@ruby-lang.org> | 2019-05-17 17:08:31 +0300 |
| commit | ea3e7e268546599883b25d9a33d26e042461ac25 (patch) | |
| tree | 56e36b4147651fbe1c9f73848b76bed164aaf4aa /spec/ruby/shared/string | |
| parent | 0723c107f4fb39f60113b44dd21d875c90da5456 (diff) | |
Prevent Dynamic -> Static symbols from moving
If a dynamic symbol has been converted to a static symbol, it gets added
to the global ID list and should no longer move. C extensions can pass
symbols to rb_sym2id and those symbols should no longer be movable.
When the symbol is passed to rb_sym2id, the `id` member is set, so we
can use its existence to prevent movement.
Diffstat (limited to 'spec/ruby/shared/string')
0 files changed, 0 insertions, 0 deletions
