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

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

Issue 874003002: Oilpan: dispose ServiceWorker (and registration) objects earlier. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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/platform/heap/ThreadState.h
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h
index c94e4b68d885d3f960573290a905b3df38ead42b..d105b2162a6ca01cb51e5f066b725734f6fe0665 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -161,6 +161,16 @@ template<typename U> class ThreadingTrait<const U> : public ThreadingTrait<U> {
} \
using UsingPreFinazlizerMacroNeedsTrailingSemiColon = char
+#if ENABLE(OILPAN)
+#define WILL_BE_USING_PRE_FINALIZER(Class, method) USING_PRE_FINALIZER(Class, method)
+#define WILL_REGISTER_PREFINALIZER(objectPointer) ThreadState::current()->registerPreFinalizer(*objectPointer)
+#define WILL_UNREGISTER_PREFINALIZER(objectPointer) ThreadState::current()->unregisterPreFinalizer(*objectPointer)
haraken 2015/01/26 01:39:42 I'm not quite sure how helpful these macros are th
sof 2015/01/26 10:06:57 ok, i'm fine with waiting until a later juncture w
+#else
+#define WILL_BE_USING_PRE_FINALIZER(Class, method)
+#define WILL_REGISTER_PREFINALIZER(objectPointer)
+#define WILL_UNREGISTER_PREFINALIZER(objectPointer)
+#endif
+
// List of typed heaps. The list is used to generate the implementation
// of typed heap related methods.
//

Powered by Google App Engine
This is Rietveld 408576698