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

Side by Side Diff: src/heap/mark-compact.h

Issue 1330463002: [not for landing, heap] Parallel compaction in main GC pause (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase: Remove obsolete changes Created 5 years, 3 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/flag-definitions.h ('k') | src/heap/mark-compact.cc » ('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 #ifndef V8_HEAP_MARK_COMPACT_H_ 5 #ifndef V8_HEAP_MARK_COMPACT_H_
6 #define V8_HEAP_MARK_COMPACT_H_ 6 #define V8_HEAP_MARK_COMPACT_H_
7 7
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/heap/spaces.h" 9 #include "src/heap/spaces.h"
10 10
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 549
550 // True if parallel compaction is currently in progress. 550 // True if parallel compaction is currently in progress.
551 bool parallel_compaction_in_progress_; 551 bool parallel_compaction_in_progress_;
552 552
553 // Synchronize sweeper threads. 553 // Synchronize sweeper threads.
554 base::Semaphore pending_sweeper_jobs_semaphore_; 554 base::Semaphore pending_sweeper_jobs_semaphore_;
555 555
556 // Synchronize compaction threads. 556 // Synchronize compaction threads.
557 base::Semaphore pending_compaction_jobs_semaphore_; 557 base::Semaphore pending_compaction_jobs_semaphore_;
558 558
559 size_t concurrent_compaction_tasks_active_;
560
559 bool evacuation_; 561 bool evacuation_;
560 562
561 SlotsBufferAllocator* slots_buffer_allocator_; 563 SlotsBufferAllocator* slots_buffer_allocator_;
562 564
563 SlotsBuffer* migration_slots_buffer_; 565 SlotsBuffer* migration_slots_buffer_;
564 566
565 base::Mutex migration_slots_buffer_mutex_; 567 base::Mutex migration_slots_buffer_mutex_;
566 568
567 // Finishes GC, performs heap verification if enabled. 569 // Finishes GC, performs heap verification if enabled.
568 void Finish(); 570 void Finish();
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 // for the large object space, clearing mark bits and adding unmarked 708 // for the large object space, clearing mark bits and adding unmarked
707 // regions to each space's free list. 709 // regions to each space's free list.
708 void SweepSpaces(); 710 void SweepSpaces();
709 711
710 int DiscoverAndEvacuateBlackObjectsOnPage(NewSpace* new_space, 712 int DiscoverAndEvacuateBlackObjectsOnPage(NewSpace* new_space,
711 NewSpacePage* p); 713 NewSpacePage* p);
712 714
713 void EvacuateNewSpace(); 715 void EvacuateNewSpace();
714 716
715 void EvacuateLiveObjectsFromPage(Page* p, PagedSpace* target_space); 717 void EvacuateLiveObjectsFromPage(Page* p, PagedSpace* target_space);
718 bool EvacuateLiveObjectsFromPageWithoutEmergency(Page* p,
719 PagedSpace* target_space);
716 720
717 void EvacuatePages(); 721 void EvacuatePages();
722 void EvacuatePagesUsingCompactionSpace(CompactionSpaces* compaction_spaces);
718 723
719 void EvacuatePagesInParallel(); 724 void EvacuatePagesInParallel();
720 725
721 void WaitUntilCompactionCompleted(); 726 void WaitUntilCompactionCompleted();
722 727
723 void EvacuateNewSpaceAndCandidates(); 728 void EvacuateNewSpaceAndCandidates();
724 729
725 void ReleaseEvacuationCandidates(); 730 void ReleaseEvacuationCandidates();
726 731
727 // Moves the pages of the evacuation_candidates_ list to the end of their 732 // Moves the pages of the evacuation_candidates_ list to the end of their
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 private: 828 private:
824 MarkCompactCollector* collector_; 829 MarkCompactCollector* collector_;
825 }; 830 };
826 831
827 832
828 const char* AllocationSpaceName(AllocationSpace space); 833 const char* AllocationSpaceName(AllocationSpace space);
829 } 834 }
830 } // namespace v8::internal 835 } // namespace v8::internal
831 836
832 #endif // V8_HEAP_MARK_COMPACT_H_ 837 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698