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

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') | src/mark-compact.cc » ('J')
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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 void WaitUntilMarkingCompleted(); 700 void WaitUntilMarkingCompleted();
701 701
702 private: 702 private:
703 MarkCompactCollector(); 703 MarkCompactCollector();
704 ~MarkCompactCollector(); 704 ~MarkCompactCollector();
705 705
706 bool MarkInvalidatedCode(); 706 bool MarkInvalidatedCode();
707 void RemoveDeadInvalidatedCode(); 707 void RemoveDeadInvalidatedCode();
708 void ProcessInvalidatedCode(ObjectVisitor* visitor); 708 void ProcessInvalidatedCode(ObjectVisitor* visitor);
709 709
710 void ReleaseEvacuationCandidates();
711
710 void StartSweeperThreads(); 712 void StartSweeperThreads();
711 713
712 #ifdef DEBUG 714 #ifdef DEBUG
713 enum CollectorState { 715 enum CollectorState {
714 IDLE, 716 IDLE,
715 PREPARE_GC, 717 PREPARE_GC,
716 MARK_LIVE_OBJECTS, 718 MARK_LIVE_OBJECTS,
717 SWEEP_SPACES, 719 SWEEP_SPACES,
718 ENCODE_FORWARDING_ADDRESSES, 720 ENCODE_FORWARDING_ADDRESSES,
719 UPDATE_POINTERS, 721 UPDATE_POINTERS,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 898
897 friend class Heap; 899 friend class Heap;
898 }; 900 };
899 901
900 902
901 const char* AllocationSpaceName(AllocationSpace space); 903 const char* AllocationSpaceName(AllocationSpace space);
902 904
903 } } // namespace v8::internal 905 } } // namespace v8::internal
904 906
905 #endif // V8_MARK_COMPACT_H_ 907 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « no previous file | src/mark-compact.cc » ('j') | src/mark-compact.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698