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

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

Issue 1354383002: [heap] Add more tasks for parallel compaction (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments round 2 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 | « no previous file | 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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 SlotsBuffer** evacuation_slots_buffer); 702 SlotsBuffer** evacuation_slots_buffer);
703 703
704 void AddEvacuationSlotsBufferSynchronized( 704 void AddEvacuationSlotsBufferSynchronized(
705 SlotsBuffer* evacuation_slots_buffer); 705 SlotsBuffer* evacuation_slots_buffer);
706 706
707 void EvacuatePages(CompactionSpaceCollection* compaction_spaces, 707 void EvacuatePages(CompactionSpaceCollection* compaction_spaces,
708 SlotsBuffer** evacuation_slots_buffer); 708 SlotsBuffer** evacuation_slots_buffer);
709 709
710 void EvacuatePagesInParallel(); 710 void EvacuatePagesInParallel();
711 711
712 int NumberOfParallelCompactionTasks() { 712 // The number of parallel compaction tasks, including the main thread.
713 // TODO(hpayer, mlippautz): Figure out some logic to determine the number 713 int NumberOfParallelCompactionTasks();
714 // of compaction tasks.
715 return 1;
716 }
717 714
718 void WaitUntilCompactionCompleted(); 715 void WaitUntilCompactionCompleted();
719 716
720 void EvacuateNewSpaceAndCandidates(); 717 void EvacuateNewSpaceAndCandidates();
721 718
722 void ReleaseEvacuationCandidates(); 719 void ReleaseEvacuationCandidates();
723 720
724 // Moves the pages of the evacuation_candidates_ list to the end of their 721 // Moves the pages of the evacuation_candidates_ list to the end of their
725 // corresponding space pages list. 722 // corresponding space pages list.
726 void MoveEvacuationCandidatesToEndOfPagesList(); 723 void MoveEvacuationCandidatesToEndOfPagesList();
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 private: 847 private:
851 MarkCompactCollector* collector_; 848 MarkCompactCollector* collector_;
852 }; 849 };
853 850
854 851
855 const char* AllocationSpaceName(AllocationSpace space); 852 const char* AllocationSpaceName(AllocationSpace space);
856 } 853 }
857 } // namespace v8::internal 854 } // namespace v8::internal
858 855
859 #endif // V8_HEAP_MARK_COMPACT_H_ 856 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698