| Index: Source/platform/heap/ThreadState.h
|
| diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h
|
| index 6f788b740f11bd48b416b604c8e468582770a94a..75db15418a6cf7fb593ffadcd8c9226082891ef0 100644
|
| --- a/Source/platform/heap/ThreadState.h
|
| +++ b/Source/platform/heap/ThreadState.h
|
| @@ -260,6 +260,8 @@ public:
|
| static void shutdownHeapIfNecessary();
|
| bool isTerminating() { return m_isTerminating; }
|
|
|
| + bool lazySweepToken() { return m_lazySweepToggle; }
|
| +
|
| static void attachMainThread();
|
| static void detachMainThread();
|
|
|
| @@ -640,6 +642,13 @@ private:
|
| Vector<OwnPtr<CleanupTask>> m_cleanupTasks;
|
| bool m_isTerminating;
|
|
|
| + // Lazy sweeping will mark pages as having been swept as the
|
| + // operation progresses. This is done by encoding the current
|
| + // lazy sweep state of their ThreadState on the page. Just a
|
| + // single bit is required, which is toggled when a new sweep
|
| + // is initiated.
|
| + bool m_lazySweepToggle;
|
| +
|
| bool m_shouldFlushHeapDoesNotContainCache;
|
| double m_collectionRate;
|
| GCState m_gcState;
|
|
|