Reviewers: Mads Ager,
Description:
Fix compilation failure on Win.
Please review this at http://codereview.chromium.org/2821016/show
Affected files:
M src/heap.h
M src/heap.cc
Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index
d0dbdb1eab2fcdad0c88ab0a987bb245bd0345d4..9d6e13a6536868c4ae72e6890a5c2f8ecd717610
100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -128,7 +128,7 @@ int Heap::contexts_disposed_ = 0;
int Heap::young_survivors_after_last_gc_ = 0;
int Heap::high_survival_rate_period_length_ = 0;
-int Heap::survival_rate_ = 0;
+double Heap::survival_rate_ = 0;
Heap::SurvivalRateTrend Heap::previous_survival_rate_trend_ = Heap::STABLE;
Heap::SurvivalRateTrend Heap::survival_rate_trend_ = Heap::STABLE;
bool Heap::bumped_old_gen_limits_ = false;
Index: src/heap.h
diff --git a/src/heap.h b/src/heap.h
index
e4c59aa5078223580ac939089cdc75c6aa7c1979..fd0b06b84e1dbe1b7e1ec342371f8a508a8bdabc
100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -1282,7 +1282,7 @@ class Heap : public AllStatic {
static int young_survivors_after_last_gc_;
static int high_survival_rate_period_length_;
- static int survival_rate_;
+ static double survival_rate_;
static SurvivalRateTrend previous_survival_rate_trend_;
static SurvivalRateTrend survival_rate_trend_;
static bool bumped_old_gen_limits_;
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev