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

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

Issue 674143002: Oilpan: remove now-unused thread affinity macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/ThreadState.h
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h
index 2ffca5cc2597ff1cb840ada3d902c0650ba0d6d8..67d3543c68b774058fad0649368c87134a97e6c2 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -112,28 +112,6 @@ struct ThreadingTrait {
static const ThreadAffinity Affinity = DefaultThreadingTrait<T>::Affinity;
};
-// Marks the specified class as being used from multiple threads. When
-// a class is used from multiple threads we go through thread local
-// storage to get the heap in which to allocate an object of that type
-// and when allocating a Persistent handle for an object with that
-// type. Notice that marking the base class does not automatically
-// mark its descendants and they have to be explicitly marked.
-#define USED_FROM_MULTIPLE_THREADS(Class) \
- class Class; \
- template<> struct ThreadingTrait<Class> { \
- static const ThreadAffinity Affinity = AnyThread; \
- }
-
-#define USED_FROM_MULTIPLE_THREADS_NAMESPACE(Namespace, Class) \
- namespace Namespace { \
- class Class; \
- } \
- namespace blink { \
- template<> struct ThreadingTrait<Namespace::Class> { \
- static const ThreadAffinity Affinity = AnyThread; \
- }; \
- }
-
template<typename U> class ThreadingTrait<const U> : public ThreadingTrait<U> { };
// Declare that a class has a pre-finalizer function. The function is called in
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698