RFR (S) 8073479: Replace obj.getClass hacks with Objects.requireNonNull

Peter Levart peter.levart at gmail.com
Thu Feb 19 15:17:28 UTC 2015


On 02/19/2015 04:02 PM, Aleksey Shipilev wrote:
>> >Hi Aleksey,
>> >
>> >Is profile pollution problem already fixed? Can Objects.requireNonNull
>> >be used in performance critical code without fear of performance
>> >regression?
> What profile pollution? Objects.requireNonNull is a static method. See
> also the link in bug description:
>    http://cr.openjdk.java.net/~shade/scratch/NullChecks.java
>
> -Aleksey.
>

Remi described it here:

http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-April/026669.html


Peter




More information about the core-libs-dev mailing list