RFR: Incorrect constant folding with final field and -ShenandoahOptimizeFinals
Aleksey Shipilev
shade at redhat.com
Thu Oct 19 09:04:14 UTC 2017
On 10/19/2017 10:28 AM, Roland Westrelin wrote:
> http://cr.openjdk.java.net/~roland/shenandoah/ccpfinalfieldrb/webrev.00/
>
> I ran some tests with -ShenandoahOptimizeFinals and I found we would
> sometime incorrectly constant fold loads of final fields. During CCP,
> when types are propagated, we must make sure we always process a Load
> that is behind a read barrier when the type of the read barrier input
> changes because the type of the read barrier itself doesn't change.
The change looks good.
Thanks,
-Aleksey
More information about the shenandoah-dev
mailing list