Starlight-JS / starlight

JS engine in Rust
https://teletype.in/@starlight-js
Mozilla Public License 2.0
511 stars 9 forks source link

Make use of `Handle<T>` and `HandleMut<T>` for GCed pointers #50

Closed playXE closed 3 years ago

playXE commented 3 years ago

Right now there are no restrictions on calling methods on GCed objects but ideally, we should use GC handles so every access is properly protected. Such a thing allows us to implement moving GC in the future without any problems.

playXE commented 3 years ago

Closing this issue as we now have conservative scanning and do not require to use handles.