Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MetricsRegistry needs a bigger map.

  • Loading branch information...
commit edccd0bdbd30185e86b129871c7ed6389f766ffe 1 parent be02834
@codahale codahale authored
View
2  metrics-core/src/main/java/com/yammer/metrics/core/MetricsRegistry.java
@@ -447,7 +447,7 @@ public void removeMetric(MetricName name) {
* @return a new {@link ConcurrentMap}
*/
protected ConcurrentMap<MetricName, Metric> newMetricsMap() {
- return new ConcurrentHashMap<MetricName, Metric>();
+ return new ConcurrentHashMap<MetricName, Metric>(1024);
}
@SuppressWarnings("unchecked")
Please sign in to comment.
Something went wrong with that request. Please try again.