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

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

Issue 1138663002: Oilpan: support eager finalization/sweeping. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase + introduce OILPAN_EAGERLY_SWEEP() Created 5 years, 7 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 459b8acd854aa0178a933f85b33cea1ea8f0e366..6c54dfed56576c33f5dcf76cf1241383f646699a 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -141,6 +141,7 @@ enum HeapIndices {
NormalPage2HeapIndex,
NormalPage3HeapIndex,
NormalPage4HeapIndex,
+ EagerSweepHeapIndex,
Vector1HeapIndex,
Vector2HeapIndex,
Vector3HeapIndex,
@@ -633,6 +634,8 @@ private:
bool shouldForceConservativeGC();
void runScheduledGC(StackState);
+ void eagerSweep();
+
// When ThreadState is detaching from non-main thread its
// heap is expected to be empty (because it is going away).
// Perform registered cleanup tasks and garbage collection

Powered by Google App Engine
This is Rietveld 408576698