Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/shared/gcUtil.hpp @ 268:d6340ab4105b
6723228: NUMA allocator: assert(lgrp_id != -1, "No lgrp_id set")
6723229: NUMA allocator: assert(lgrp_num > 0, "There should be at least one locality group")
Summary: The fix takes care of the assertion triggered during TLAB resizing after reconfiguration. Also it now handles a defect in the topology graph, in which a single leaf node doesn't have memory.
Reviewed-by: jmasa
author | iveresov |
---|---|
date | Thu, 17 Jul 2008 10:26:33 -0700 |
parents | a61af66fc99e |
children | 9ee9cf798b59 |
comparison
equal
deleted
inserted
replaced
267:9d6a3a6891f8 | 268:d6340ab4105b |
---|---|
56 // Input weight must be between 0 and 100 | 56 // Input weight must be between 0 and 100 |
57 AdaptiveWeightedAverage(unsigned weight) : | 57 AdaptiveWeightedAverage(unsigned weight) : |
58 _average(0.0), _sample_count(0), _weight(weight), _last_sample(0.0) { | 58 _average(0.0), _sample_count(0), _weight(weight), _last_sample(0.0) { |
59 } | 59 } |
60 | 60 |
61 void clear() { | |
62 _average = 0; | |
63 _sample_count = 0; | |
64 _last_sample = 0; | |
65 } | |
66 | |
61 // Accessors | 67 // Accessors |
62 float average() const { return _average; } | 68 float average() const { return _average; } |
63 unsigned weight() const { return _weight; } | 69 unsigned weight() const { return _weight; } |
64 unsigned count() const { return _sample_count; } | 70 unsigned count() const { return _sample_count; } |
65 float last_sample() const { return _last_sample; } | 71 float last_sample() const { return _last_sample; } |
112 | 118 |
113 // Accessor | 119 // Accessor |
114 float padded_average() const { return _padded_avg; } | 120 float padded_average() const { return _padded_avg; } |
115 float deviation() const { return _deviation; } | 121 float deviation() const { return _deviation; } |
116 unsigned padding() const { return _padding; } | 122 unsigned padding() const { return _padding; } |
123 | |
124 void clear() { | |
125 AdaptiveWeightedAverage::clear(); | |
126 _padded_avg = 0; | |
127 _deviation = 0; | |
128 } | |
117 | 129 |
118 // Override | 130 // Override |
119 void sample(float new_sample); | 131 void sample(float new_sample); |
120 }; | 132 }; |
121 | 133 |