Long accumulator boxing overhead

Code reviewHard20 min

Your task

Review this Java method that sums a metric over millions of samples in a tight aggregation loop.