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

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

Issue 12082101: Release evacuation candidates after parallel sweeper threads completed. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 inline Heap* heap() const { return heap_; } 588 inline Heap* heap() const { return heap_; }
589 589
590 CodeFlusher* code_flusher() { return code_flusher_; } 590 CodeFlusher* code_flusher() { return code_flusher_; }
591 inline bool is_code_flushing_enabled() const { return code_flusher_ != NULL; } 591 inline bool is_code_flushing_enabled() const { return code_flusher_ != NULL; }
592 void EnableCodeFlushing(bool enable); 592 void EnableCodeFlushing(bool enable);
593 593
594 enum SweeperType { 594 enum SweeperType {
595 CONSERVATIVE, 595 CONSERVATIVE,
596 LAZY_CONSERVATIVE, 596 LAZY_CONSERVATIVE,
597 PARALLEL_CONSERVATIVE, 597 PARALLEL_CONSERVATIVE,
598 CONCURRENT_CONSERVATIVE,
598 PRECISE 599 PRECISE
599 }; 600 };
600 601
601 enum SweepingParallelism { 602 enum SweepingParallelism {
602 SWEEP_SEQUENTIALLY, 603 SWEEP_SEQUENTIALLY,
603 SWEEP_IN_PARALLEL 604 SWEEP_IN_PARALLEL
604 }; 605 };
605 606
606 #ifdef VERIFY_HEAP 607 #ifdef VERIFY_HEAP
607 void VerifyMarkbitsAreClean(); 608 void VerifyMarkbitsAreClean();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 FreeList* free_list); 688 FreeList* free_list);
688 689
689 void WaitUntilSweepingCompleted(); 690 void WaitUntilSweepingCompleted();
690 691
691 intptr_t StealMemoryFromSweeperThreads(PagedSpace* space); 692 intptr_t StealMemoryFromSweeperThreads(PagedSpace* space);
692 693
693 bool AreSweeperThreadsActivated(); 694 bool AreSweeperThreadsActivated();
694 695
695 bool IsConcurrentSweepingInProgress(); 696 bool IsConcurrentSweepingInProgress();
696 697
698 void FinalizeSweeping();
699
697 // Parallel marking support. 700 // Parallel marking support.
698 void MarkInParallel(); 701 void MarkInParallel();
699 702
700 void WaitUntilMarkingCompleted(); 703 void WaitUntilMarkingCompleted();
701 704
702 private: 705 private:
703 MarkCompactCollector(); 706 MarkCompactCollector();
704 ~MarkCompactCollector(); 707 ~MarkCompactCollector();
705 708
706 bool MarkInvalidatedCode(); 709 bool MarkInvalidatedCode();
707 void RemoveDeadInvalidatedCode(); 710 void RemoveDeadInvalidatedCode();
708 void ProcessInvalidatedCode(ObjectVisitor* visitor); 711 void ProcessInvalidatedCode(ObjectVisitor* visitor);
709 712
713 void ReleaseEvacuationCandidates();
714
710 void StartSweeperThreads(); 715 void StartSweeperThreads();
711 716
712 #ifdef DEBUG 717 #ifdef DEBUG
713 enum CollectorState { 718 enum CollectorState {
714 IDLE, 719 IDLE,
715 PREPARE_GC, 720 PREPARE_GC,
716 MARK_LIVE_OBJECTS, 721 MARK_LIVE_OBJECTS,
717 SWEEP_SPACES, 722 SWEEP_SPACES,
718 ENCODE_FORWARDING_ADDRESSES, 723 ENCODE_FORWARDING_ADDRESSES,
719 UPDATE_POINTERS, 724 UPDATE_POINTERS,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 901
897 friend class Heap; 902 friend class Heap;
898 }; 903 };
899 904
900 905
901 const char* AllocationSpaceName(AllocationSpace space); 906 const char* AllocationSpaceName(AllocationSpace space);
902 907
903 } } // namespace v8::internal 908 } } // namespace v8::internal
904 909
905 #endif // V8_MARK_COMPACT_H_ 910 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « no previous file | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698