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

Unified Diff: src/incremental-marking.h

Issue 7528022: Fix the --max-old-space-size flag so it can be used on 64 bit for (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 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
« no previous file with comments | « src/heap.cc ('k') | src/incremental-marking.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/incremental-marking.h
===================================================================
--- src/incremental-marking.h (revision 8858)
+++ src/incremental-marking.h (working copy)
@@ -94,6 +94,7 @@
static const intptr_t kAllocationMarkingFactorSpeedupInterval = 1024;
// This is how much we increase the marking/allocating factor by.
static const intptr_t kAllocationMarkingFactorSpeedup = 4;
+ static const intptr_t kMaxAllocationMarkingFactor = 1000000000;
void Step(intptr_t allocated);
@@ -142,6 +143,10 @@
return steps_took_;
}
+ inline double longest_step() {
+ return longest_step_;
+ }
+
inline int steps_count_since_last_gc() {
return steps_count_since_last_gc_;
}
@@ -172,8 +177,10 @@
void ResetStepCounters() {
steps_count_ = 0;
steps_took_ = 0;
+ longest_step_ = 0.0;
steps_count_since_last_gc_ = 0;
steps_took_since_last_gc_ = 0;
+ bytes_rescanned_ = 0;
allocation_marking_factor_ = kInitialAllocationMarkingFactor;
}
@@ -208,11 +215,15 @@
int steps_count_;
double steps_took_;
+ double longest_step_;
int steps_count_since_last_gc_;
double steps_took_since_last_gc_;
+ int64_t bytes_rescanned_;
bool should_hurry_;
int allocation_marking_factor_;
intptr_t allocated_;
+
+ DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
};
} } // namespace v8::internal
« no previous file with comments | « src/heap.cc ('k') | src/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698