Prevent excessive garbage from boxing of primitives in ExperimentalStateTracker.
@@ -757,8 +757,8 @@ class ExperimentalStateTracker {
Map<ActionState, Artifact> copy =
new TreeMap<>(
Comparator.comparing((ActionState entry) -> entry.runningStrategiesBitmap == 0)
- .thenComparing(entry -> entry.nanoStartTime)
- .thenComparing(ActionState::hashCode));
+ .thenComparingLong(entry -> entry.nanoStartTime)
+ .thenComparingInt(ActionState::hashCode));
for (Map.Entry<Artifact, ActionState> action : activeActions.entrySet()) {
copy.put(action.getValue().deepCopy(), action.getKey());
}
