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

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

Issue 615933003: Remove sweeper threads (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | « 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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 634
635 void EnsureSweepingCompleted(); 635 void EnsureSweepingCompleted();
636 636
637 // If sweeper threads are not active this method will return true. If 637 // If sweeper threads are not active this method will return true. If
638 // this is a latency issue we should be smarter here. Otherwise, it will 638 // this is a latency issue we should be smarter here. Otherwise, it will
639 // return true if the sweeper threads are done processing the pages. 639 // return true if the sweeper threads are done processing the pages.
640 bool IsSweepingCompleted(); 640 bool IsSweepingCompleted();
641 641
642 void RefillFreeList(PagedSpace* space); 642 void RefillFreeList(PagedSpace* space);
643 643
644 bool AreSweeperThreadsActivated();
645
646 // Checks if sweeping is in progress right now on any space. 644 // Checks if sweeping is in progress right now on any space.
647 bool sweeping_in_progress() { return sweeping_in_progress_; } 645 bool sweeping_in_progress() { return sweeping_in_progress_; }
648 646
649 void set_sequential_sweeping(bool sequential_sweeping) { 647 void set_sequential_sweeping(bool sequential_sweeping) {
650 sequential_sweeping_ = sequential_sweeping; 648 sequential_sweeping_ = sequential_sweeping;
651 } 649 }
652 650
653 bool sequential_sweeping() const { return sequential_sweeping_; } 651 bool sequential_sweeping() const { return sequential_sweeping_; }
654 652
655 // Mark the global table which maps weak objects to dependent code without 653 // Mark the global table which maps weak objects to dependent code without
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 private: 945 private:
948 MarkCompactCollector* collector_; 946 MarkCompactCollector* collector_;
949 }; 947 };
950 948
951 949
952 const char* AllocationSpaceName(AllocationSpace space); 950 const char* AllocationSpaceName(AllocationSpace space);
953 } 951 }
954 } // namespace v8::internal 952 } // namespace v8::internal
955 953
956 #endif // V8_HEAP_MARK_COMPACT_H_ 954 #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