RFR (S) 8150534: C1 compilation fails with "Constant field loads are folded during parsing"

Aleksey Shipilev aleksey.shipilev at oracle.com
Wed Feb 24 18:37:49 UTC 2016


On 02/24/2016 09:17 PM, Vladimir Ivanov wrote:
> The failures are caused by ScavengeRootsInCode < 2. In such case,
> compilers don't constant fold object-producing loads, because they can
> lead to embedded oops. But it's fine to constant fold an array length,
> since it produces an int.

Oh, that explains it, thanks!

> I suggest the following adjustments [1]:

Agreed:
  http://cr.openjdk.java.net/~shade/8150534/webrev.02/

-Aleksey


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20160224/0394cbdf/signature.asc>


More information about the hotspot-compiler-dev mailing list