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

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

Issue 875503003: Allow Oilpan heap objects account for their external allocations. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: minor tidying Created 5 years, 10 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
Index: Source/platform/heap/ThreadState.h
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h
index b4e5f992ccf35ae039fb7537f02e975ad355b861..e5c65dab9f9e02bcb3230d3910504d6280cea054 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -343,6 +343,11 @@ public:
return gcState() == Sweeping || gcState() == SweepingAndPreciseGCScheduled || gcState() == SweepingAndIdleGCScheduled;
}
+ bool isSweepingScheduled() const
+ {
+ return gcState() == SweepingAndPreciseGCScheduled || gcState() == SweepingAndIdleGCScheduled;
+ }
+
void preGC();
void postGC(GCType);

Powered by Google App Engine
This is Rietveld 408576698