RFR (S) 8150180: String.value contents should be trusted

Vladimir Ivanov vladimir.x.ivanov at oracle.com
Fri Feb 19 12:42:18 UTC 2016


>    http://cr.openjdk.java.net/~shade/8150180/webrev.hs.01/

Why don't you check that index is also a constant? Otherwise, C2 can't 
constant fold the loads.

+  if (value->is_Con()) {
+    return false;
+  }

Best regards,
Vladimir Ivanov


More information about the hotspot-compiler-dev mailing list