mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 15:27:34 +00:00
LibJS: Revoke any outstanding WeakPtr<Shape> when zombifying shapes
The forward transition cache in Shape uses WeakPtr<Shape> to learn when a cached transition has been garbage collected. When running in zombification mode, we have to explicitly revoke any outstanding WeakPtrs to a Shape when it becomes a zombie. That ensures that it gets pruned from transition caches.
This commit is contained in:
parent
cd7dbe3e97
commit
b9eb8d00ca
2 changed files with 6 additions and 0 deletions
|
@ -88,6 +88,7 @@ public:
|
|||
private:
|
||||
virtual const char* class_name() const override { return "Shape"; }
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
virtual void did_become_zombie() override;
|
||||
|
||||
Shape* get_or_prune_cached_forward_transition(TransitionKey const&);
|
||||
void ensure_property_table() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue