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

Unified Diff: Source/heap/Heap.h

Issue 178663004: Oilpan: move WorkerGlobalScope to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove dead code Created 6 years, 10 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: Source/heap/Heap.h
diff --git a/Source/heap/Heap.h b/Source/heap/Heap.h
index e970e62b0c80b1f165a749d4ecaab3bb9f18cd1b..a4a83205f0f8deb986deee177075657add0c3084 100644
--- a/Source/heap/Heap.h
+++ b/Source/heap/Heap.h
@@ -1341,6 +1341,13 @@ struct ThreadingTrait<HashMap<Key, Value, HeapAllocator, T, U, V> > {
&& (ThreadingTrait<Value>::Affinity == MainThreadOnly) ? MainThreadOnly : AnyThread;
};
+template<typename First, typename Second>
+struct ThreadingTrait<WTF::KeyValuePair<First, Second> > {
+ static const ThreadAffinity Affinity =
+ (ThreadingTrait<First>::Affinity == MainThreadOnly)
+ && (ThreadingTrait<Second>::Affinity == MainThreadOnly) ? MainThreadOnly : AnyThread;
+};
+
template<typename T, typename U, typename V>
struct ThreadingTrait<HashSet<T, HeapAllocator, U, V> > {
static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity;

Powered by Google App Engine
This is Rietveld 408576698