Commit e391df68 authored by zerny@chromium.org's avatar zerny@chromium.org

Oilpan: Ensure that types definitions are known for traced weak members.

R=sigbjornf@opera.com
BUG=

Review URL: https://codereview.chromium.org/334623006

git-svn-id: svn://svn.chromium.org/blink/trunk@176429 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 07f0f8cb
...@@ -259,6 +259,8 @@ public: ...@@ -259,6 +259,8 @@ public:
template<typename T> template<typename T>
void trace(const WeakMember<T>& t) void trace(const WeakMember<T>& t)
{ {
// Check that we actually know the definition of T when tracing.
COMPILE_ASSERT(sizeof(T), WeNeedToKnowTheDefinitionOfTheTypeWeAreTracing);
registerWeakCell(const_cast<WeakMember<T>&>(t).cell()); registerWeakCell(const_cast<WeakMember<T>&>(t).cell());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment