<AWT Dev> RFR(XS): 8160721: Avoid deoptimizations in Font.equals.

Remi Forax forax at univ-mlv.fr
Fri Jul 1 15:56:54 UTC 2016


Hi Goetz, 
the test obj != null is not need, because null has no class. 

cheers, 
Rémi 

----- Mail original -----

> De: "Goetz Lindenmaier" <goetz.lindenmaier at sap.com>
> À: awt-dev at openjdk.java.net
> Envoyé: Vendredi 1 Juillet 2016 15:59:54
> Objet: <AWT Dev> RFR(XS): 8160721: Avoid deoptimizations in Font.equals.

> Hi,

> This small fix improves performance of the C2 compiler.

> We see deoptimizations due to class casts in Font.equals.
> Use instanceof check instead of catching the exception.

> Please review this change:

> http://cr.openjdk.java.net/~goetz/wr16/8160721-deoptFont/

> Best regards,

> Goetz.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20160701/ae514e98/attachment-0001.html>


More information about the awt-dev mailing list