Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: tools/clang/blink_gc_plugin/tests/member_in_offheap_class.h

Issue 2902563002: blink_gc_plugin: disallow WeakMember<> fields in off-heap objects. (Closed)
Patch Set: add missing file from ps#3 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/clang/blink_gc_plugin/tests/member_in_offheap_class.h
diff --git a/tools/clang/blink_gc_plugin/tests/member_in_offheap_class.h b/tools/clang/blink_gc_plugin/tests/member_in_offheap_class.h
index 89357a3482e7c8ed1a5e2befdbddf6260a182378..170a889028cf446ff611407685b586615facd8bc 100644
--- a/tools/clang/blink_gc_plugin/tests/member_in_offheap_class.h
+++ b/tools/clang/blink_gc_plugin/tests/member_in_offheap_class.h
@@ -16,6 +16,7 @@ public:
void Trace(Visitor*);
private:
Member<HeapObject> m_obj; // Must not contain Member.
+ WeakMember<HeapObject> m_weak; // Must not contain WeakMember.
Persistent<HeapVector<Member<HeapObject> > > m_objs; // OK
};
« no previous file with comments | « tools/clang/blink_gc_plugin/CheckFieldsVisitor.cpp ('k') | tools/clang/blink_gc_plugin/tests/member_in_offheap_class.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698