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

Unified Diff: runtime/vm/scavenger.cc

Issue 1350933004: Distinct block sizes for StoreBuffer/MarkingStack. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Ready for review. Created 5 years, 3 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
Index: runtime/vm/scavenger.cc
diff --git a/runtime/vm/scavenger.cc b/runtime/vm/scavenger.cc
index fd1256e57d8dda6181294a9220d143b7b51c68fb..bcb8bbe135d1534ce5c7aafba689734c26e2b0f2 100644
--- a/runtime/vm/scavenger.cc
+++ b/runtime/vm/scavenger.cc
@@ -526,7 +526,8 @@ void Scavenger::IterateStoreBuffers(Isolate* isolate,
raw_object->VisitPointers(visitor);
}
pending->Reset();
- isolate->store_buffer()->PushBlock(pending);
+ // Return the emptied block for recycling (no need to check threshold).
+ isolate->store_buffer()->PushBlock(pending, false);
pending = next;
}
heap_->RecordData(kStoreBufferEntries, total_count);
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | runtime/vm/store_buffer.h » ('j') | runtime/vm/store_buffer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698