RFR: Disable barrier optimization on constant when +ShenandoahBarriersForConst

Roman Kennke rkennke at redhat.com
Tue Jun 20 16:19:32 UTC 2017


Am 20.06.2017 um 17:44 schrieb Roman Kennke:
> There is an optimization in
> CmpPNode::shenandoah_optimize_java_mirror_cmp() that eliminates barriers
> when comparing two java mirror objects. We need those barriers when
> running with +ShenandoahBarriersForConst. This patch disables that
> optimization:
>
> http://cr.openjdk.java.net/~rkennke/fixbarriersforconst/webrev.00/
> <http://cr.openjdk.java.net/%7Erkennke/fixbarriersforconst/webrev.00/>
>
> Ok?
>
> Roman
>
I made a mistake. I used ShenandoahBarriersForConst as renamed in the
patch posted by Aleksey, but that one is not in the repo yet. So here
comes the correct version that actually builds:

http://cr.openjdk.java.net/~rkennke/fixbarriersforconst/webrev.01/
<http://cr.openjdk.java.net/%7Erkennke/fixbarriersforconst/webrev.01/>

Roman



More information about the shenandoah-dev mailing list