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

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

Issue 1000493003: Oilpan: fix gcc compilation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Switch to a static_assert() Created 5 years, 9 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 | « no previous file | 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 ebc8c8e617e059188ae68fc4e84e4a82c5e265f6..00d9f2c000fc75a5a4a5528da5e607ea1a00c471 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -543,8 +543,8 @@ public:
template<typename T>
void unregisterPreFinalizer(T& target)
{
+ static_assert(sizeof(&T::invokePreFinalizer) > 0, "Declaration of USING_PRE_FINALIZER()'s prefinalizer trampoline not in scope.");
checkThread();
- ASSERT(&T::invokePreFinalizer);
unregisterPreFinalizerInternal(&target);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698