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

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: Rebased 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 00bd62a0f022e27c3d74fdfca90644135402d56b..e0d06f04be8559970bdb74c7083eabc9bb7b673a 100644
--- a/Source/heap/Heap.h
+++ b/Source/heap/Heap.h
@@ -1363,6 +1363,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;
« no previous file with comments | « Source/heap/Handle.h ('k') | Source/heap/ThreadState.h » ('j') | Source/platform/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698