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

Unified Diff: src/heap/mark-compact.h

Issue 479113004: Remove conservative sweeping. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/heap.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/mark-compact.h
diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h
index 7a8b1063a9414a6735c40bb1fcb7169628fab8a4..f7075d6e69afbab8bca89cfa607490283a9012ee 100644
--- a/src/heap/mark-compact.h
+++ b/src/heap/mark-compact.h
@@ -544,11 +544,9 @@ class MarkCompactCollector {
void EnableCodeFlushing(bool enable);
enum SweeperType {
- PARALLEL_CONSERVATIVE,
- CONCURRENT_CONSERVATIVE,
- PARALLEL_PRECISE,
- CONCURRENT_PRECISE,
- PRECISE
+ PARALLEL_SWEEPING,
+ CONCURRENT_SWEEPING,
+ SEQUENTIAL_SWEEPING
};
enum SweepingParallelism { SWEEP_ON_MAIN_THREAD, SWEEP_IN_PARALLEL };
@@ -561,12 +559,6 @@ class MarkCompactCollector {
void VerifyOmittedMapChecks();
#endif
- // Sweep a single page from the given space conservatively.
- // Returns the size of the biggest continuous freed memory chunk in bytes.
- template <SweepingParallelism type>
- static int SweepConservatively(PagedSpace* space, FreeList* free_list,
- Page* p);
-
INLINE(static bool ShouldSkipEvacuationSlotRecording(Object** anchor)) {
return Page::FromAddress(reinterpret_cast<Address>(anchor))
->ShouldSkipEvacuationSlotRecording();
@@ -693,10 +685,6 @@ class MarkCompactCollector {
CollectorState state_;
#endif
- // Global flag that forces sweeping to be precise, so we can traverse the
- // heap.
- bool sweep_precisely_;
-
bool reduce_memory_footprint_;
bool abort_incremental_marking_;
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698