Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "Collectable in a gen2 freelist accessed" when deserializing a me…
…thod cache We deserialize the method cache hash itself. Then we run the work_loop to deserialize its entries. This may trigger GC. Since the cache at that point is not referenced by any root, we free it. Serialization and deserialization runs with allocation in gen2 enabled, so we don't have tons of MVM_ROOT in the (de-)serialization code. But that only protects against pointers getting moved, not actually against stuff getting freed. Fix by MVMROOTing the cache object itself and also other collectables that we will still use while running the work_loop.
- Loading branch information