Currently, we only support constants of some primitive types (int, long, float, double, pointer). As a result, operations involving more sophisticated constants (vectors, lookup tables, etc) need to either rely on stubRoutine generator or a workaround if the constants are not available in start-up time (e.g vector broadcast of constants).
Array constants provide a more flexible way to use constants in generated code, which leads to the ability to use more optimal operations more easily. Also, support for array constants, in principle, allows us to reinterpret those as any possible constants.
Array constants provide a more flexible way to use constants in generated code, which leads to the ability to use more optimal operations more easily. Also, support for array constants, in principle, allows us to reinterpret those as any possible constants.
- relates to
-
JDK-8342651 Refactor array constant to use an array of jbyte
-
- Resolved
-