Hi Remi, thanks, your're right, that's better.
Best regards Goetz. > -----Original Message----- > From: Remi Forax [mailto:fo...@univ-mlv.fr] > Sent: Freitag, 1. Juli 2016 17:57 > To: Lindenmaier, Goetz <goetz.lindenma...@sap.com> > Cc: awt-dev@openjdk.java.net > Subject: Re: <AWT Dev> RFR(XS): 8160721: Avoid deoptimizations in > Font.equals. > > Hi Goetz, > > the test obj != null is not need, because null has no class. > > > cheers, > > Rémi > > > ________________________________ > > > De: "Goetz Lindenmaier" <goetz.lindenma...@sap.com> > À: awt-dev@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. >