| Index: Source/platform/heap/Heap.h
|
| diff --git a/Source/platform/heap/Heap.h b/Source/platform/heap/Heap.h
|
| index 784aa5eae61d705c187737347b8c016d150bdbb0..478c8859f6a61b78dbfa3b81c9b3be8366b80874 100644
|
| --- a/Source/platform/heap/Heap.h
|
| +++ b/Source/platform/heap/Heap.h
|
| @@ -880,12 +880,18 @@
|
| static bool willObjectBeLazilySwept(const T* objectPointer)
|
| {
|
| static_assert(IsGarbageCollectedType<T>::value, "only objects deriving from GarbageCollected can be used.");
|
| +#if ENABLE(OILPAN)
|
| BasePage* page = pageFromObject(objectPointer);
|
| if (page->hasBeenSwept())
|
| return false;
|
| ASSERT(page->heap()->threadState()->isSweepingInProgress());
|
|
|
| return !ObjectAliveTrait<T>::isHeapObjectAlive(s_markingVisitor, const_cast<T*>(objectPointer));
|
| +#else
|
| + // FIXME: remove when lazy sweeping is always on
|
| + // (cf. ThreadState::preSweep()).
|
| + return false;
|
| +#endif
|
| }
|
|
|
| // Push a trace callback on the marking stack.
|
|
|