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

Unified Diff: src/heap/heap.cc

Issue 496273002: First tests for GCIdleTimeHandler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: More tests, rebase Created 6 years, 4 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: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index a29b767c41a5b7ded1f26a78fd62fe49d291e345..5cfbdfbc2aef4a6526af8a3ceb0b2b608c1483c0 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -4298,9 +4298,13 @@ bool Heap::IdleNotification(int idle_time_in_ms) {
heap_state.can_start_incremental_marking = true;
heap_state.sweeping_in_progress =
mark_compact_collector()->sweeping_in_progress();
+ heap_state.mark_compact_speed_in_bytes_per_ms =
+ static_cast<size_t>(tracer()->MarkCompactSpeedInBytesPerMillisecond());
+ heap_state.incremental_marking_speed_in_bytes_per_ms = static_cast<size_t>(
+ tracer()->IncrementalMarkingSpeedInBytesPerMillisecond());
GCIdleTimeAction action =
- gc_idle_time_handler_.Compute(idle_time_in_ms, heap_state, tracer());
+ gc_idle_time_handler_.Compute(idle_time_in_ms, heap_state);
contexts_disposed_ = 0;
bool result = false;

Powered by Google App Engine
This is Rietveld 408576698