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

Unified Diff: src/heap/incremental-marking.h

Issue 1865333002: [heap] Make sure that we transition to MARKING when we are finalize SWEEPING. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | src/heap/incremental-marking.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/incremental-marking.h
diff --git a/src/heap/incremental-marking.h b/src/heap/incremental-marking.h
index f10150da347465c851dc2fcf3baf56c7bc4ecc28..a332b8864c5f35f08e6fe7bb314a89a240d55ecd 100644
--- a/src/heap/incremental-marking.h
+++ b/src/heap/incremental-marking.h
@@ -68,6 +68,8 @@ class IncrementalMarking {
inline bool IsStopped() { return state() == STOPPED; }
+ inline bool IsSweeping() { return state() == SWEEPING; }
+
INLINE(bool IsMarking()) { return state() >= MARKING; }
inline bool IsMarkingIncomplete() { return state() == MARKING; }
@@ -135,6 +137,8 @@ class IncrementalMarking {
// incremental marking to be postponed.
static const size_t kMaxIdleMarkingDelayCounter = 3;
+ void FinalizeSweeping();
+
void OldSpaceStep(intptr_t allocated);
intptr_t Step(intptr_t allocated, CompletionAction action,
« no previous file with comments | « no previous file | src/heap/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698