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

Side by Side Diff: src/heap/incremental-marking.cc

Issue 1133153003: Never uncommit the whole marking deque in case we can't get it back (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merge Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/heap/incremental-marking.h" 7 #include "src/heap/incremental-marking.h"
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/compilation-cache.h" 10 #include "src/compilation-cache.h"
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 MarkCompactCollector::INCREMENTAL_COMPACTION); 511 MarkCompactCollector::INCREMENTAL_COMPACTION);
512 512
513 state_ = MARKING; 513 state_ = MARKING;
514 514
515 RecordWriteStub::Mode mode = is_compacting_ 515 RecordWriteStub::Mode mode = is_compacting_
516 ? RecordWriteStub::INCREMENTAL_COMPACTION 516 ? RecordWriteStub::INCREMENTAL_COMPACTION
517 : RecordWriteStub::INCREMENTAL; 517 : RecordWriteStub::INCREMENTAL;
518 518
519 PatchIncrementalMarkingRecordWriteStubs(heap_, mode); 519 PatchIncrementalMarkingRecordWriteStubs(heap_, mode);
520 520
521 heap_->mark_compact_collector()->EnsureMarkingDequeIsCommittedAndInitialize(); 521 heap_->mark_compact_collector()->EnsureMarkingDequeIsCommittedAndInitialize(
522 MarkCompactCollector::kMaxMarkingDequeSize);
522 523
523 ActivateIncrementalWriteBarrier(); 524 ActivateIncrementalWriteBarrier();
524 525
525 // Marking bits are cleared by the sweeper. 526 // Marking bits are cleared by the sweeper.
526 #ifdef VERIFY_HEAP 527 #ifdef VERIFY_HEAP
527 if (FLAG_verify_heap) { 528 if (FLAG_verify_heap) {
528 heap_->mark_compact_collector()->VerifyMarkbitsAreClean(); 529 heap_->mark_compact_collector()->VerifyMarkbitsAreClean();
529 } 530 }
530 #endif 531 #endif
531 532
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { 1023 void IncrementalMarking::IncrementIdleMarkingDelayCounter() {
1023 idle_marking_delay_counter_++; 1024 idle_marking_delay_counter_++;
1024 } 1025 }
1025 1026
1026 1027
1027 void IncrementalMarking::ClearIdleMarkingDelayCounter() { 1028 void IncrementalMarking::ClearIdleMarkingDelayCounter() {
1028 idle_marking_delay_counter_ = 0; 1029 idle_marking_delay_counter_ = 0;
1029 } 1030 }
1030 } // namespace internal 1031 } // namespace internal
1031 } // namespace v8 1032 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698