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

Unified Diff: src/heap/spaces.h

Issue 2428043002: [heap] Start sweeper tasks after evacuation. (Closed)
Patch Set: address comment Created 4 years, 2 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 | « src/heap/mark-compact.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/spaces.h
diff --git a/src/heap/spaces.h b/src/heap/spaces.h
index 5d22e4bc58ed80fcd4dedd45d60878cec9fd0aa8..a66f3394d3117585a1fd8af755b4cc54448464bb 100644
--- a/src/heap/spaces.h
+++ b/src/heap/spaces.h
@@ -413,6 +413,10 @@ class MemoryChunk {
return concurrent_sweeping_;
}
+ bool SweepingDone() {
+ return concurrent_sweeping_state().Value() == kSweepingDone;
+ }
+
// Manage live byte count, i.e., count of bytes in black objects.
inline void ResetLiveBytes();
inline void IncrementLiveBytes(int by);
@@ -767,10 +771,6 @@ class Page : public MemoryChunk {
DCHECK(SweepingDone());
}
- bool SweepingDone() {
- return concurrent_sweeping_state().Value() == kSweepingDone;
- }
-
void ResetFreeListStatistics();
size_t AvailableInFreeList();
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698