mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibJSGCVerifier: Support marking GCPtr members as raw references
This lets us avoid false positives when a GCPtr-wrapped member is only a weak reference which is automatically updated by the GC when the member's gc state is updated.
This commit is contained in:
parent
c3217754f1
commit
c84cd1d668
Notes:
sideshowbarker
2024-07-17 03:30:41 +09:00
Author: https://github.com/IdanHo
Commit: c84cd1d668
Pull-request: https://github.com/SerenityOS/serenity/pull/23854
Issue: https://github.com/SerenityOS/serenity/issues/23848
Reviewed-by: https://github.com/mattco98 ✅
Reviewed-by: https://github.com/trflynn89
4 changed files with 9 additions and 5 deletions
|
@ -32,7 +32,7 @@ public:
|
|||
private:
|
||||
explicit WeakSet(Object& prototype);
|
||||
|
||||
HashTable<GCPtr<Cell>> m_values; // This stores Cell pointers instead of Object pointers to aide with sweeping
|
||||
HashTable<RawGCPtr<Cell>> m_values; // This stores Cell pointers instead of Object pointers to aide with sweeping
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue