RFR (M): 8143407: C1: @Stable array support
vladimir.x.ivanov at oracle.com
Fri Feb 26 15:31:31 UTC 2016
Any reviews, please?
On 2/19/16 9:34 PM, Vladimir Ivanov wrote:
> Add C1 support for constant folding loads from @Stable arrays.
> It aligns C1 & C2 behavior w.r.t. @Stable fields and was requested for
> VarHandles  implementation.
> I introduced StableArrayConstant to track stable array dimension.
> It is needed to disambiguate the following cases:
> (1) @Stable int intArr = new int[...][...][...];
> (2) @Stable Object objArr = new int[...][...][...];
> In the first case, all elements of multi-dimensional array w/
> non-default values are considered constant.
> In the latter, only elements of objArray (which are int instances).
> Testing: unit tests on @Stable support, JPRT.
> Best regards,
> Vladimir Ivanov
>  http://openjdk.java.net/jeps/193
More information about the hotspot-compiler-dev