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

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

Issue 163683003: The sweeper thread should not write the page flags. Added a sweeping complete phase, where the main… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 void EvacuateNewSpace(); 933 void EvacuateNewSpace();
934 934
935 void EvacuateLiveObjectsFromPage(Page* p); 935 void EvacuateLiveObjectsFromPage(Page* p);
936 936
937 void EvacuatePages(); 937 void EvacuatePages();
938 938
939 void EvacuateNewSpaceAndCandidates(); 939 void EvacuateNewSpaceAndCandidates();
940 940
941 void SweepSpace(PagedSpace* space, SweeperType sweeper); 941 void SweepSpace(PagedSpace* space, SweeperType sweeper);
942 942
943 // Finalizes the parallel sweeping phase. Marks all the pages that were
944 // swept in parallel.
945 void ParallelSweepSpacesComplete();
946
947 void ParallelSweepSpaceComplete(PagedSpace* space);
948
943 #ifdef DEBUG 949 #ifdef DEBUG
944 friend class MarkObjectVisitor; 950 friend class MarkObjectVisitor;
945 static void VisitObject(HeapObject* obj); 951 static void VisitObject(HeapObject* obj);
946 952
947 friend class UnmarkObjectVisitor; 953 friend class UnmarkObjectVisitor;
948 static void UnmarkObject(HeapObject* obj); 954 static void UnmarkObject(HeapObject* obj);
949 #endif 955 #endif
950 956
951 Heap* heap_; 957 Heap* heap_;
952 MarkingDeque marking_deque_; 958 MarkingDeque marking_deque_;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 private: 1028 private:
1023 MarkCompactCollector* collector_; 1029 MarkCompactCollector* collector_;
1024 }; 1030 };
1025 1031
1026 1032
1027 const char* AllocationSpaceName(AllocationSpace space); 1033 const char* AllocationSpaceName(AllocationSpace space);
1028 1034
1029 } } // namespace v8::internal 1035 } } // namespace v8::internal
1030 1036
1031 #endif // V8_MARK_COMPACT_H_ 1037 #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