Skip to content
Snippets Groups Projects
Commit fbd25a76 authored by Lukas Stadler's avatar Lukas Stadler
Browse files

handle length == 0 properly in CountedLoopConditionProfile

parent 2f806afa
Branches
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ public final class CountedLoopConditionProfile {
@CompilationFinal private int sum;
public void profileLength(int length) {
if (CompilerDirectives.inInterpreter() && (sum + length > sum)) {
if (CompilerDirectives.inInterpreter() && (sum + length >= sum)) {
sum += length;
count++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment