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

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

Issue 2552613004: [heap] Ensure finalization of incremental marking even if all allocations (Closed)
Patch Set: revert marking change Created 4 years 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 | « src/heap/heap.cc ('k') | src/heap/spaces.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 c2290c4d8206ee39907d7d327baca35cb9e5db46..7ce0ae2379df4c19a0b95733b1070023d3550631 100644
--- a/src/heap/incremental-marking.h
+++ b/src/heap/incremental-marking.h
@@ -66,6 +66,11 @@ class IncrementalMarking {
return request_type_ == FINALIZATION && !finalize_marking_completed_;
}
+ inline bool NeedsFinalization() {
+ return IsMarking() &&
+ (request_type_ == FINALIZATION || request_type_ == COMPLETE_MARKING);
+ }
+
GCRequestType request_type() const { return request_type_; }
void reset_request_type() { request_type_ = NONE; }
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698