8143900: OptimizeStringConcat has an opaque dependency on Integer.sizeTable field

Reviewed-by: kvn, thartmann
This commit is contained in:
Yi Yang 2023-03-03 02:00:45 +00:00
parent 35003b5f7b
commit c961a918ad
3 changed files with 80 additions and 137 deletions

View file

@ -529,10 +529,6 @@ public final class Integer extends Number
return charPos;
}
// Left here for compatibility reasons, see JDK-8143900.
static final int [] sizeTable = { 9, 99, 999, 9999, 99999, 999999, 9999999,
99999999, 999999999, Integer.MAX_VALUE };
/**
* Returns the string representation size for a given int value.
*