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

Unified Diff: Source/platform/heap/HeapLinkedStack.h

Issue 765673004: Oilpan: support eager tracing of objects when marking. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Re-introduce TraceEagerly Created 6 years, 1 month 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: Source/platform/heap/HeapLinkedStack.h
diff --git a/Source/platform/heap/HeapLinkedStack.h b/Source/platform/heap/HeapLinkedStack.h
index 2ad0bb206ce3498376003cf45e1d4e2844e86f9d..e7d776512f12184f900073191947f5b61b0a39db 100644
--- a/Source/platform/heap/HeapLinkedStack.h
+++ b/Source/platform/heap/HeapLinkedStack.h
@@ -56,7 +56,7 @@ public:
}
private:
- class Node : public GarbageCollected<Node> {
+ class Node : public GarbageCollected<Node>, public TraceEagerly {
public:
Node(const T&, Node* next);
@@ -110,6 +110,12 @@ inline size_t HeapLinkedStack<T>::size()
return m_size;
}
-}
+template<typename T>
+class TraceEagerlyTrait<HeapLinkedStack<T> > {
+public:
+ static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
+};
+
+} // namespace blink
#endif // HeapLinkedStack_h

Powered by Google App Engine
This is Rietveld 408576698