equal
deleted
inserted
replaced
28 #include "utilities/ostream.hpp" |
28 #include "utilities/ostream.hpp" |
29 |
29 |
30 // Technically this should be derived from machine speed, and |
30 // Technically this should be derived from machine speed, and |
31 // ideally it would be dynamically adjusted. |
31 // ideally it would be dynamically adjusted. |
32 float AllocationStats::_threshold = ((float)CMS_SweepTimerThresholdMillis)/1000; |
32 float AllocationStats::_threshold = ((float)CMS_SweepTimerThresholdMillis)/1000; |
|
33 |
|
34 void AllocationStats::initialize(bool split_birth) { |
|
35 AdaptivePaddedAverage* dummy = |
|
36 new (&_demand_rate_estimate) AdaptivePaddedAverage(CMS_FLSWeight, |
|
37 CMS_FLSPadding); |
|
38 _desired = 0; |
|
39 _coal_desired = 0; |
|
40 _surplus = 0; |
|
41 _bfr_surp = 0; |
|
42 _prev_sweep = 0; |
|
43 _before_sweep = 0; |
|
44 _coal_births = 0; |
|
45 _coal_deaths = 0; |
|
46 _split_births = (split_birth ? 1 : 0); |
|
47 _split_deaths = 0; |
|
48 _returned_bytes = 0; |
|
49 } |