mbeckem / tiro

A simple scripting language.
MIT License
7 stars 0 forks source link

Do not rely on non-moving object data #29

Open mbeckem opened 2 years ago

mbeckem commented 2 years ago

Some places in the vm implementation (e.g. hash table) rely on the internal Layout pointer to remain stable while operating on the object. This will break in the future once the gc moves objects around.

The existing code should be fixed. There should also be infrastructure to ensure that this error is avoided in the future.

Notes: