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

Unified Diff: src/spaces.cc

Issue 12499004: Unlink evacuation candidates from list of pages before starting sweeper threads. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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
« src/mark-compact.cc ('K') | « src/mark-compact.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces.cc
diff --git a/src/spaces.cc b/src/spaces.cc
index 1861c5340391d50db9d7c2ac3e51ce6dd6f2d0da..39149ca9d449184f771a8f688305fd801a51b4ff 100644
--- a/src/spaces.cc
+++ b/src/spaces.cc
@@ -547,8 +547,12 @@ void MemoryChunk::Unlink() {
heap_->decrement_scan_on_scavenge_pages();
ClearFlag(SCAN_ON_SCAVENGE);
}
- next_chunk_->prev_chunk_ = prev_chunk_;
- prev_chunk_->next_chunk_ = next_chunk_;
+ if (next_chunk_ != NULL) {
Michael Starzinger 2013/03/08 12:52:06 This would indicate that you try to unlink a Page
Hannes Payer (out of office) 2013/03/08 14:02:30 Done.
+ next_chunk_->prev_chunk_ = prev_chunk_;
+ }
+ if (prev_chunk_ != NULL) {
+ prev_chunk_->next_chunk_ = next_chunk_;
+ }
prev_chunk_ = NULL;
next_chunk_ = NULL;
}
@@ -981,6 +985,7 @@ bool PagedSpace::CanExpand() {
return true;
}
+
bool PagedSpace::Expand() {
if (!CanExpand()) return false;
@@ -2555,7 +2560,6 @@ bool PagedSpace::EnsureSweeperProgress(intptr_t size_in_bytes) {
if (collector->StealMemoryFromSweeperThreads(this) < size_in_bytes) {
if (!collector->sequential_sweeping()) {
collector->WaitUntilSweepingCompleted();
- collector->FinalizeSweeping();
return true;
}
}
« src/mark-compact.cc ('K') | « src/mark-compact.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698