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

Vitaly Davidovich vitalyd at gmail.com
Thu Feb 19 15:21:31 UTC 2015


Does anyone know which changesets Remi was referring to in jdk9 that
fix/mitigate this?

On Thu, Feb 19, 2015 at 10:17 AM, Peter Levart <peter.levart at gmail.com>
wrote:

> 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