| Index: Source/platform/heap/Heap.h
|
| diff --git a/Source/platform/heap/Heap.h b/Source/platform/heap/Heap.h
|
| index 37d5ce4926273bd6d576eb95f0fef4019b867434..bf207d1fe657d940f9d4ed55865d6784dc2d4eb7 100644
|
| --- a/Source/platform/heap/Heap.h
|
| +++ b/Source/platform/heap/Heap.h
|
| @@ -1179,6 +1179,8 @@ public: \
|
| { \
|
| return allocateObject(size, true); \
|
| }
|
| +
|
| +#define IS_EAGERLY_FINALIZED() (pageFromObject(this)->heap()->heapIndex() == ThreadState::EagerSweepHeapIndex)
|
| #if ENABLE(ASSERT) && ENABLE(OILPAN)
|
| class VerifyEagerFinalization {
|
| public:
|
| @@ -1192,7 +1194,7 @@ public:
|
| // eagerly finalized. Declaring and defining an 'operator new'
|
| // for this class is what's required -- consider using
|
| // DECLARE_EAGER_FINALIZATION_OPERATOR_NEW().
|
| - ASSERT(pageFromObject(this)->heap()->heapIndex() == ThreadState::EagerSweepHeapIndex);
|
| + ASSERT(IS_EAGERLY_FINALIZED());
|
| }
|
| };
|
| #define EAGERLY_FINALIZE() \
|
|
|