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

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

Issue 1783283003: [heap] Remove unused flag prohibiting local slot buffer entries (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/mark-compact.cc
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
index 33bf3da5c71664a5c1d0903daed9d3b7049c1dd3..9f69a762e8d6e99a02bafa2b4e909339b787bc5e 100644
--- a/src/heap/mark-compact.cc
+++ b/src/heap/mark-compact.cc
@@ -62,7 +62,6 @@ MarkCompactCollector::MarkCompactCollector(Heap* heap)
have_code_to_deoptimize_(false),
compacting_(false),
sweeping_in_progress_(false),
- compaction_in_progress_(false),
pending_sweeper_tasks_semaphore_(0),
pending_compaction_tasks_semaphore_(0) {
}
@@ -2512,12 +2511,7 @@ void MarkCompactCollector::RecordMigratedSlot(
// When parallel compaction is in progress, store and slots buffer entries
// require synchronization.
if (heap_->InNewSpace(value)) {
- if (compaction_in_progress_) {
- old_to_new_slots->Record(slot);
- } else {
- Page* page = Page::FromAddress(slot);
- RememberedSet<OLD_TO_NEW>::Insert(page, slot);
- }
+ old_to_new_slots->Record(slot);
} else if (value->IsHeapObject() && IsOnEvacuationCandidate(value)) {
old_to_old_slots->Record(slot);
}
« no previous file with comments | « src/heap/mark-compact.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698