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

Unified Diff: src/sweeper-thread.cc

Issue 12184016: Set unswept free bytes for concurent sweeper. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/spaces.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/sweeper-thread.cc
diff --git a/src/sweeper-thread.cc b/src/sweeper-thread.cc
index df5fcc683a403770ccaedfd9e4ef57d3e20b2472..f08fcfbc6f8297401c4f360397112042bcb373d1 100644
--- a/src/sweeper-thread.cc
+++ b/src/sweeper-thread.cc
@@ -76,17 +76,15 @@ void SweeperThread::Run() {
intptr_t SweeperThread::StealMemory(PagedSpace* space) {
- intptr_t free_bytes = 0;
if (space->identity() == OLD_POINTER_SPACE) {
- free_bytes = space->free_list()->Concatenate(&free_list_old_pointer_space_);
- space->AddToAccountingStats(free_bytes);
+ return space->free_list()->Concatenate(&free_list_old_pointer_space_);
} else if (space->identity() == OLD_DATA_SPACE) {
- free_bytes = space->free_list()->Concatenate(&free_list_old_data_space_);
- space->AddToAccountingStats(free_bytes);
+ return space->free_list()->Concatenate(&free_list_old_data_space_);
}
- return free_bytes;
+ return 0;
}
+
void SweeperThread::Stop() {
Release_Store(&stop_thread_, static_cast<AtomicWord>(true));
start_sweeping_semaphore_->Signal();
« no previous file with comments | « src/spaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698