Project

General

Profile

« Previous | Next » 

Revision ea3e7e26

Added by tenderlovemaking (Aaron Patterson) almost 5 years ago

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.