Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
AsmClassGenerator#visitArrayExpression chooses the multianewarray instruction for all size-based array allocations. The anewarray instruction is available for one-dimensional arrays.
String[] strings = new String[0] // n iconst_0 // n+1 multianewarray java.lang.String[] // vs. // n iconst_0 // n+1 anewarray java.lang.String