RFR (XS): 8162815: unnecessary object creation in reflection

Aleksey Shipilev aleksey.shipilev at gmail.com
Tue Aug 9 06:45:15 UTC 2016


On 08/09/2016 12:09 AM, Paul Sandoz wrote:
>> On 4 Aug 2016, at 12:02, Claes Redestad <claes.redestad at oracle.com>
>> wrote:
>> Hi,
>> 
>> I'd like to sponsor this bug fix provided by Tomáš Hůrka to remove
>> a new and dup left behind in generated accessor methods after
>> moving these to use appropriate valueOf methods for boxing
>> primitive returns.
>> 
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8162815 Webrev:
>> http://cr.openjdk.java.net/~redestad/8162815/webrev.01/
>> 
>> This appears to have a very limited effect to peak performance in
>> HotSpot (interpreter and C1 level code seem to hurt a bit), but
>> should be fixed for correctness.
>> 
> 
> +1

Looks good to me too.

Thanks,
-Aleksey




More information about the core-libs-dev mailing list